You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We got an error on the authentication process with the odoo modul with the following message:
{"level":"error","message":"NodeApiError crypto is not defined","metadata":{"file":"ResponseHelper.js","function":"sendErrorResponse","timestamp":"2024-06-26T11:35:16.787Z"}}
On Verbose it shows:
{"level":"verbose","message":"Workflow execution finished with error","metadata":{"error":{"context":{},"functionality":"regular","httpCode":null,"level":"warning","message":"crypto is not defined","messages":["crypto is not defined"],"name":"NodeApiError","node":{"credentials":{"odooApi":{"id":"FWJDWHfcEdcmXavI","name":"ERP-Login"}},"id":"fc96349c-c61d-4381-883b-158a595479ca","name":"Get Contact Tag List","parameters":{"customResource":"res.partner.category","filterRequest":{},"operation":"getAll","options":{"fieldsList":["id","name","partner_ids"]},"resource":"custom","returnAll":true},"position":[0,40],"type":"n8n-nodes-base.odoo","typeVersion":1},"stack":"NodeApiError: crypto is not defined\n at Object.odooGetUserID (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/nodes/Odoo/GenericFunctions.ts:405:9)\n at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/nodes/Odoo/Odoo.node.ts:310:38)\n at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/src/Workflow.ts:1379:8)\n at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/src/WorkflowExecute.ts:1059:27\n at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/src/WorkflowExecute.ts:1763:11","tags":{},"timestamp":1719389477657},"file":"LoggerProxy.js","function":"exports.verbose","timestamp":"2024-06-26T08:11:17.658Z","workflowId":"O1YfLLWJCoI5htsF"}}
All other Credentials working fine.
To Reproduce
We just do the following:
redeploy N8N Workflow in Test Environment
generate new Odoo API Key
searching the git repository for changes and see that there is a change in the crypto module in the Odoo Node
Can you please try switching to nodejs v18.20.x, or v20.15.x 🙏🏽 ?
There is this random bug in older versions of nodejs 18 where global.crypto sometimes isn't defined.
Can you please try switching to nodejs v18.20.x, or v20.15.x 🙏🏽 ? There is this random bug in older versions of nodejs 18 where global.crypto sometimes isn't defined.
That works, thanks for your fast response!
We are running now on: v20.15.0
Bug Description
We got an error on the authentication process with the odoo modul with the following message:
On Verbose it shows:
All other Credentials working fine.
To Reproduce
We just do the following:
Expected behavior
Our N8N Deployment is running on Debian 12 with Node.JS, NPM and PM2
Operating System
debian 12
n8n Version
1.47.0
Node.js Version
v18.19.0
Database
SQLite (default)
Execution mode
main (default)
The text was updated successfully, but these errors were encountered: