Waiting for missing types to be registered

#1

Hello,

I've some problems with a node that I've made. This node use request to do a simple get request to any server. When I used the node for first time, it run well. Now, I change de project to add new nodes and the first node doesn't work. When I try it, I recieve a notification that said: "Waiting for missing types to be registered: fiware-in" (fiware-in is the name of the node.

I try a lot of solutions, but anything runs.

Thanks!

0 Likes

#2

Hi @trujillo - welcome.

That means Node-RED has not been able to load your custom module for some reason. It will have reported any errors it hit trying to load your node in the log - so that's the place to look first.

0 Likes

#3

Before, I can see the modules in the command windows but now I can't. However, I can see the nodes in the palette and I can use it in the flow. When I deploy, the problems starts.

0 Likes

#4

Show us the whole log, up to when the error occurs. If possible please copy/paste here from the terminal. You can use Ctrl+Shift+C to copy from the terminal.

0 Likes

#5

This is my cmd when I deploy the node:

C:\Users\Trujillo.node-red>node-red scratch.js
22 Mar 09:07:53 - [info]

Welcome to Node-RED

22 Mar 09:07:53 - [info] Node-RED version: v0.20.2
22 Mar 09:07:53 - [info] Node.js version: v10.15.3
22 Mar 09:07:53 - [info] Windows_NT 10.0.17134 x64 LE
22 Mar 09:07:54 - [info] Loading palette nodes
22 Mar 09:07:56 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
22 Mar 09:07:56 - [info] Settings file : \Users\Trujillo.node-red\settings.js
22 Mar 09:07:56 - [info] Context store : 'default' [module=memory]
22 Mar 09:07:56 - [info] User directory : \Users\Trujillo.node-red
22 Mar 09:07:56 - [warn] Projects disabled : editorTheme.projects.enabled=false
22 Mar 09:07:56 - [info] Flows file : C:\Users\Trujillo.node-red\scratch.js
22 Mar 09:07:56 - [warn]


Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.

22 Mar 09:07:56 - [info] Starting flows
22 Mar 09:07:56 - [info] Started flows
22 Mar 09:07:56 - [info] Server now running at http://127.0.0.1:1880/
22 Mar 09:09:02 - [info] Stopping flows
22 Mar 09:09:02 - [info] Stopped flows
22 Mar 09:09:02 - [info] Waiting for missing types to be registered:
22 Mar 09:09:02 - [info] - fiware-in
22 Mar 09:09:06 - [info] Stopping flows
22 Mar 09:09:06 - [info] Stopped flows

@Colin Is this that you said it?

0 Likes

#6

Given there are no errors at the start - around the 'Loading palette nodes' line - then the most simple explanation is it hasn't found a module that provides the type fiware-in.

If you take a look in the file ~/.node-red/.config.json you'll see a list of all the modules node-red has loaded and where they came from. Check your module is listed in there.

0 Likes

#7

The node is in the file that you comment. You can see fiware-out and fiware-in, the first runs well but the second has the problem and I don't know how repair it.

Thanks!

0 Likes

#8

The runtime first identifies what types a node provides by scanning its html file - that is where the array of types comes from that you can see on line 502 in that screenshot.

It assumes the node's javascript file will actually register a node of that type.

But the error you are hitting tells us the javascript is not calling RED.nodes.registerType() with a type of "fiware-in". That would be the next thing for you to check.

0 Likes

#9

This is the beginning of mi fiware-in.html. In the js file, RED.nodes.registerType() has 'fiware-in' too.

Thanks a lot for your comments!

0 Likes

#10

You've shown the .html file - but its the .js file that determines what gets loaded in the runtime.

0 Likes

#11

Ok, the js has an error.

Thank you very much! I solve my problem!

Thanks!

0 Likes