Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Error: Module is not initialized" when deploying 2 nodes with same Path #4

Open
janvda opened this issue Nov 30, 2020 · 3 comments
Open
Labels
bug Something isn't working

Comments

@janvda
Copy link
Owner

janvda commented Nov 30, 2020

It is currently not possible to deploy the node more than once for the same Path.
In that case only one of nodes will work and the other node will report the error:

"Error: Module is not initialized"

and its status will say that it is still loading the edge-impulse module:

image

@janvda janvda added the bug Something isn't working label Nov 30, 2020
@janvda
Copy link
Owner Author

janvda commented Nov 30, 2020

as workaround (to be checked) you can copy the 2 following 2 files to another folder and use that folder location as Path for the other node:

  • edge-impulse-standalone.js
  • edge-impulse-standalone.wasm

@janvda
Copy link
Owner Author

janvda commented Nov 30, 2020

I think there are 3 solutions:

  1. Using a configuration node that does the loading of the modules and the 2 nodes should then use the same configuration.
  2. Maybe we can check the npm cache to see if the module is not yet already loaded (by another node).
  3. in global variable we keep track of all edge impulse (paths) loaded - if it is already loaded then we must skip the loading.

@JAGUAR1617
Copy link

for object detection this error -> "TypeError: Cannot read property 'size' of undefined"
for audio classification - > "Error: Classification failed (err code: -5)"
can u help me out here. or what output we get from edge impulse node ?
thnx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants