question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple loadHandlers registered in node

See original GitHub issue

TensorFlow.js version

@tensorflow/tfjs”: “1.0.2”, “@tensorflow/tfjs-node”: “1.0.2”, “@tensorflow-models/universal-sentence-encoder”: “1.0.1”,

Browser version

It exhibits in node.js though the issue itself may be in core.

Describe the problem or feature request

Using the above packages and the code below you get the following error.

UnhandledPromiseRejectionWarning: Error: Found more than one (2) load handlers for URL 'https://storage.googleapis.com/tfjs-models/savedmodel/universal_sentence_encoder/model.json'

Multiple load handlers are being registered. This isue dows not occur with union package 1.0.1

Code to reproduce the bug / link to feature request

const tf = require('@tensorflow/tfjs-node');
global.fetch = require('node-fetch');
const useLoader = require('@tensorflow-models/universal-sentence-encoder');

(async function run() {
  console.time('Loading Universal Sentence Encoder');
  const use = await useLoader.load();
  console.timeEnd('Loading Universal Sentence Encoder');
})()

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nsthoratcommented, Apr 21, 2019

FYI this should be fixed in 1.1, we might have to update USE.

0reactions
axingingcommented, Sep 2, 2020

Hi, I meet similar problems when run PoseNet model with latest TFJS code. The errors are:

Uncaught (in promise) Error: Found more than one (4) load handlers for URL 'https://storage.googleapis.com/tfjs-models/savedmodel/posenet/mobilenet/quant2/075/model-stride16.json'
    at GraphModel.findIOHandler (graph_model.ts:98)
    at GraphModel.load (graph_model.ts:111)
    at loadGraphModel (graph_model.ts:392)
    at posenet.esm.js:17
    at posenet.esm.js:17
    at Object.next (posenet.esm.js:17)
    at posenet.esm.js:17
    at new Promise (<anonymous>)
    at __awaiter (posenet.esm.js:17)
    at loadMobileNet (posenet.esm.js:17)

And How I run into this:

git clone https://github.com/tensorflow/tfjs.git && ^
cd tfjs && ^
yarn  & cd tfjs-core  && ^
yarn && yarn build-npm  && ^
yarn link  && ^
cd ../tfjs-converter  && ^
yarn && yarn build-npm  && ^
yarn link  && ^
cd ../tfjs-backend-cpu  && ^
yarn && yarn build  && ^
yarn link  && ^
cd ../tfjs-backend-webgl  && ^
yarn && yarn build  && ^
yarn link  && ^
cd ../tfjs-backend-webgpu  && ^
yarn && yarn build  && ^
yarn link  && ^
cd ../../    && ^
git clone https://github.com/tensorflow/tfjs-models.git && ^
cd tfjs-models  && ^
yarn    && ^
cd posenet    && ^
yarn link "@tensorflow/tfjs-core"   && ^
yarn link "@tensorflow/tfjs-backend-webgpu"   && ^
yarn link "@tensorflow/tfjs-converter"   && ^
yarn link "@tensorflow/tfjs-backend-webgl"   && ^
yarn && yarn build-npm   && ^
yarn link   && ^
cd demos   && ^
yarn link "@tensorflow/tfjs-core"   && ^
yarn link "@tensorflow/tfjs-backend-webgpu"   && ^
yarn link "@tensorflow/tfjs-backend-webgl"   && ^
yarn link "@tensorflow/tfjs-converter"   && ^
yarn link "@tensorflow-models/posenet"   && ^
yarn && yarn build   && ^
yarn watch

At first, I suspect some thing is wrong with my local environment. So I remove all links inside C:\Users\axing\AppData\Local\Yarn\Data\link, then delete all C:\Users\axing\AppData\Local\Yarn\Cache\v6\npm-@tensorflow-*

However, this still not work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Register same event listener twice or two different ...
I have a Node JS express app with four connection events (connected/ disconnected/ error/ process end). I am registering listeners for these ...
Read more >
OpenGLContext.loaders.loader - PyOpenGL - SourceForge
Is a generic class which provides download services which follow VRML97 semantics (multiple-URL definitions, with chaining to the first successful URL).
Read more >
Untitled
This registration allows the ISA bus driver to call back the ISA device ... The ISA device's own node, which identifies the node...
Read more >
WO2001044935A1 - Computer system with an improved device and ...
The device registry entry may further comprise a node identifier, defining an associated node in ... 7 is a flowchart illustrating a driver...
Read more >
Get
Note that the Get Utility will not automatically purge CSS <link> nodes by ... In fact, you can even call execute() multiple times...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found