Debugging cause for UnrecognizedNodeTypeError of custom node

Describe the problem/error/question

Hi there, I recently updated my selfhosted n8n from 1.35 to 1.45 and now I have the problem that my advanced-flow-nodes are unknown to the sytem. All other community nodes like Ninox or sevDesk are well known

What is the error message (if any)?

I’m not sure if the pushRef is related, but the relevant errors seem to be the last few lines.

ResponseError: The query parameter "pushRef" is missing!
    at Push.handleRequest (/usr/local/lib/node_modules/n8n/dist/push/index.js:44:19)
    at /usr/local/lib/node_modules/n8n/dist/push/index.js:109:70
    at newFn (/usr/local/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)
    at Layer.handle [as handle_request] (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:328:13)
    at /usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:346:12)
    at next (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:280:10)
    at AuthService.authMiddleware (/usr/local/lib/node_modules/n8n/dist/auth/auth.service.js:60:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
ResponseError: The query parameter "pushRef" is missing!
    at Push.handleRequest (/usr/local/lib/node_modules/n8n/dist/push/index.js:44:19)
    at /usr/local/lib/node_modules/n8n/dist/push/index.js:109:70
    at newFn (/usr/local/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)
    at Layer.handle [as handle_request] (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:328:13)
    at /usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:346:12)
    at next (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:280:10)
    at AuthService.authMiddleware (/usr/local/lib/node_modules/n8n/dist/auth/auth.service.js:60:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
ResponseError: The query parameter "pushRef" is missing!
    at Push.handleRequest (/usr/local/lib/node_modules/n8n/dist/push/index.js:44:19)
    at /usr/local/lib/node_modules/n8n/dist/push/index.js:109:70
    at newFn (/usr/local/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)
    at Layer.handle [as handle_request] (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:328:13)
    at /usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:346:12)
    at next (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:280:10)
    at AuthService.authMiddleware (/usr/local/lib/node_modules/n8n/dist/auth/auth.service.js:60:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
ResponseError: The query parameter "pushRef" is missing!
    at Push.handleRequest (/usr/local/lib/node_modules/n8n/dist/push/index.js:44:19)
    at /usr/local/lib/node_modules/n8n/dist/push/index.js:109:70
    at newFn (/usr/local/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)
    at Layer.handle [as handle_request] (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:328:13)
    at /usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:346:12)
    at next (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:280:10)
    at AuthService.authMiddleware (/usr/local/lib/node_modules/n8n/dist/auth/auth.service.js:60:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
ResponseError: The query parameter "pushRef" is missing!
    at Push.handleRequest (/usr/local/lib/node_modules/n8n/dist/push/index.js:44:19)
    at /usr/local/lib/node_modules/n8n/dist/push/index.js:109:70
    at newFn (/usr/local/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)
    at Layer.handle [as handle_request] (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:328:13)
    at /usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:346:12)
    at next (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:280:10)
    at AuthService.authMiddleware (/usr/local/lib/node_modules/n8n/dist/auth/auth.service.js:60:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
ResponseError: The query parameter "pushRef" is missing!
    at Push.handleRequest (/usr/local/lib/node_modules/n8n/dist/push/index.js:44:19)
    at /usr/local/lib/node_modules/n8n/dist/push/index.js:109:70
    at newFn (/usr/local/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)
    at Layer.handle [as handle_request] (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:328:13)
    at /usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:346:12)
    at next (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:280:10)
    at AuthService.authMiddleware (/usr/local/lib/node_modules/n8n/dist/auth/auth.service.js:60:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
ResponseError: The query parameter "pushRef" is missing!
    at Push.handleRequest (/usr/local/lib/node_modules/n8n/dist/push/index.js:44:19)
    at /usr/local/lib/node_modules/n8n/dist/push/index.js:109:70
    at newFn (/usr/local/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)
    at Layer.handle [as handle_request] (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:328:13)
    at /usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:346:12)
    at next (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:280:10)
    at AuthService.authMiddleware (/usr/local/lib/node_modules/n8n/dist/auth/auth.service.js:60:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
ResponseError: The query parameter "pushRef" is missing!
    at Push.handleRequest (/usr/local/lib/node_modules/n8n/dist/push/index.js:44:19)
    at /usr/local/lib/node_modules/n8n/dist/push/index.js:109:70
    at newFn (/usr/local/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)
    at Layer.handle [as handle_request] (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:328:13)
    at /usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:346:12)
    at next (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:280:10)
    at AuthService.authMiddleware (/usr/local/lib/node_modules/n8n/dist/auth/auth.service.js:60:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
ResponseError: The query parameter "pushRef" is missing!
    at Push.handleRequest (/usr/local/lib/node_modules/n8n/dist/push/index.js:44:19)
    at /usr/local/lib/node_modules/n8n/dist/push/index.js:109:70
    at newFn (/usr/local/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)
    at Layer.handle [as handle_request] (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:328:13)
    at /usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:346:12)
    at next (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:280:10)
    at AuthService.authMiddleware (/usr/local/lib/node_modules/n8n/dist/auth/auth.service.js:60:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
ResponseError: The query parameter "pushRef" is missing!
    at Push.handleRequest (/usr/local/lib/node_modules/n8n/dist/push/index.js:44:19)
    at /usr/local/lib/node_modules/n8n/dist/push/index.js:109:70
    at newFn (/usr/local/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)
    at Layer.handle [as handle_request] (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:328:13)
    at /usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:346:12)
    at next (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:280:10)
    at AuthService.authMiddleware (/usr/local/lib/node_modules/n8n/dist/auth/auth.service.js:60:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
ResponseError: The query parameter "pushRef" is missing!
    at Push.handleRequest (/usr/local/lib/node_modules/n8n/dist/push/index.js:44:19)
    at /usr/local/lib/node_modules/n8n/dist/push/index.js:109:70
    at newFn (/usr/local/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)
    at Layer.handle [as handle_request] (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:328:13)
    at /usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:346:12)
    at next (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:280:10)
    at AuthService.authMiddleware (/usr/local/lib/node_modules/n8n/dist/auth/auth.service.js:60:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
ResponseError: The query parameter "pushRef" is missing!
    at Push.handleRequest (/usr/local/lib/node_modules/n8n/dist/push/index.js:44:19)
    at /usr/local/lib/node_modules/n8n/dist/push/index.js:109:70
    at newFn (/usr/local/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)
    at Layer.handle [as handle_request] (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:328:13)
    at /usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:346:12)
    at next (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:280:10)
    at AuthService.authMiddleware (/usr/local/lib/node_modules/n8n/dist/auth/auth.service.js:60:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
ResponseError: The query parameter "pushRef" is missing!
    at Push.handleRequest (/usr/local/lib/node_modules/n8n/dist/push/index.js:44:19)
    at /usr/local/lib/node_modules/n8n/dist/push/index.js:109:70
    at newFn (/usr/local/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)
    at Layer.handle [as handle_request] (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:328:13)
    at /usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:346:12)
    at next (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:280:10)
    at AuthService.authMiddleware (/usr/local/lib/node_modules/n8n/dist/auth/auth.service.js:60:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
ResponseError: The query parameter "pushRef" is missing!
    at Push.handleRequest (/usr/local/lib/node_modules/n8n/dist/push/index.js:44:19)
    at /usr/local/lib/node_modules/n8n/dist/push/index.js:109:70
    at newFn (/usr/local/lib/node_modules/n8n/node_modules/express-async-errors/index.js:16:20)
    at Layer.handle [as handle_request] (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:328:13)
    at /usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:286:9
    at Function.process_params (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:346:12)
    at next (/usr/local/lib/node_modules/n8n/node_modules/express/lib/router/index.js:280:10)
    at AuthService.authMiddleware (/usr/local/lib/node_modules/n8n/dist/auth/auth.service.js:60:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
Failed to renew license: renewal failed because current cert is not initialized
UnrecognizedNodeTypeError: Unrecognized node type: Any".
UnrecognizedNodeTypeError: Unrecognized node type: FilterAdvanced".
UnrecognizedNodeTypeError: Unrecognized node type: For".
UnrecognizedNodeTypeError: Unrecognized node type: Generator".
UnrecognizedNodeTypeError: Unrecognized node type: IFAdvanced".
UnrecognizedNodeTypeError: Unrecognized node type: Logger".
UnrecognizedNodeTypeError: Unrecognized node type: Paging".
UnrecognizedNodeTypeError: Unrecognized node type: Push".
UnrecognizedNodeTypeError: Unrecognized node type: Pop".
UnrecognizedNodeTypeError: Unrecognized node type: Sizecheck".
Failed to renew license: renewal failed because current cert is not initialized

Please share your workflow

Should not be relevant, just try to create any flow using these nodes: n8n-nodes-advanced-flow - npm (npmjs.com)

Information on your n8n setup

  • n8n version: 1.45
  • Database (default: SQLite): Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu

Further information:

  • The nodes are installed and all dependencies are up to date
  • Any flow including one of the nodes just shows a ? instead of the symbol
  • in .n8n/nodes/node_modules there is a folder n8n-nodes-advanced-flow with the following structure:
     4 drwxr-xr-x    3 node     node          4096 Jun 16 20:22 .
     4 drwxr-xr-x   25 node     node          4096 Jun 16 20:22 ..
     4 -rw-r--r--    1 node     node          1074 Jun 16 20:22 LICENSE.md
     4 -rw-r--r--    1 node     node          2021 Jun 16 20:22 README.md
     4 drwxr-xr-x    3 node     node          4096 Jun 16 20:22 dist
     0 -rw-r--r--    1 node     node             0 Jun 16 20:22 index.js
     4 -rw-r--r--    1 node     node          2064 Jun 16 20:22 package.json

Dist:

     4 drwxr-xr-x    3 node     node          4096 Jun 16 20:22 .
     4 drwxr-xr-x    3 node     node          4096 Jun 16 20:22 ..
     4 drwxr-xr-x   13 node     node          4096 Jun 16 20:22 nodes
     4 -rw-r--r--    1 node     node          2421 Jun 16 20:22 package.json
    44 -rw-r--r--    1 node     node         42857 Jun 16 20:22 tsconfig.tsbuildinfo

nodes:

     4 drwxr-xr-x   13 node     node          4096 Jun 16 20:22 .
     4 drwxr-xr-x    3 node     node          4096 Jun 16 20:22 ..
     4 drwxr-xr-x    2 node     node          4096 Jun 16 20:22 Any
     4 drwxr-xr-x    2 node     node          4096 Jun 16 20:22 CredentialReader
     4 drwxr-xr-x    2 node     node          4096 Jun 16 20:22 FilterAdvanced
     4 drwxr-xr-x    2 node     node          4096 Jun 16 20:22 For
     4 drwxr-xr-x    2 node     node          4096 Jun 16 20:22 Generator
     4 drwxr-xr-x    2 node     node          4096 Jun 16 20:22 IfAdvanced
     4 drwxr-xr-x    2 node     node          4096 Jun 16 20:22 Logger
     4 drwxr-xr-x    2 node     node          4096 Jun 16 20:22 Paging
     4 drwxr-xr-x    2 node     node          4096 Jun 16 20:22 ShelfPop
     4 drwxr-xr-x    2 node     node          4096 Jun 16 20:22 ShelfPush
     4 drwxr-xr-x    2 node     node          4096 Jun 16 20:22 Sizecheck

Any good idea where to start debugging this error?

I think this might be an issue of the browser cache being more aggressive for static assets.
Can you please try reloading the frontend with Ctrl+Shift+R to see if that reloads with newer data from the backend?

I tried as you described and it didn’t work; additionally I’m wondering why I have the error logs in the backend.

Do you mean this error:

The query parameter “pushRef” is missing

That error is coming from a version of n8n frontend older than 1.37.0 trying to connect to a newer version of the backend.
We plan to add some kind of an optional auto-reload on the frontend some day, but until then for cases like this, you need to make sure that all the users of the instance reload their browser session manually after a version upgrade.
We know that this is feels cumbersome, and will try to add an auto-reload mechanism as soon as we can.

Hi netroy,

What I mean is the lines

UnrecognizedNodeTypeError: Unrecognized node type: Any".
UnrecognizedNodeTypeError: Unrecognized node type: FilterAdvanced".
UnrecognizedNodeTypeError: Unrecognized node type: For".
UnrecognizedNodeTypeError: Unrecognized node type: Generator".
UnrecognizedNodeTypeError: Unrecognized node type: IFAdvanced".
UnrecognizedNodeTypeError: Unrecognized node type: Logger".
UnrecognizedNodeTypeError: Unrecognized node type: Paging".
UnrecognizedNodeTypeError: Unrecognized node type: Push".
UnrecognizedNodeTypeError: Unrecognized node type: Pop".
UnrecognizedNodeTypeError: Unrecognized node type: Sizecheck".

That doesn’t look good.
Have you tried uninstalling and reinstalling the package from the frontend?

Yes, I did.

Could someone check on their installation if they can install it?

Name is n8n-nodes-advanced-flow

I already did, and so far I’m not able to reproduce this

Can you please try this:

  1. Uninstall the node from the frontend
  2. Delete .n8n/nodes
  3. Restart n8n
  4. Install the node from the frontend

Finally, I found the issue.

I had a Version-Entry 2.3 used in the older versions of the Nodes, but with n8n version 1.40(?) I had issues with this version entry, so, I removed Version 2.3 from the List in the Node Definition.

Now, this version is part of the specification within each flow and now 2.3 could not be found anymore.

I downloaded each flow, removed the V2.3 with V4 and reimported it. Should all work as expected now.

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.