Describe the problem/error/question
Since 1.0.1 and annoyingly intermittantly, Odoo Requests return a failure. Setting “Retry” > 1 increases chances of workflow succeeding, so the data being retrieved/pushed is not incorrect.
What is the error message (if any)?
Stack
NodeApiError: 'Request' object has no attribute 'session'
at Object.odooGetUserID (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Odoo/GenericFunctions.js:292:15)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Odoo/Odoo.node.js:258:24)
at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:658:19)
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:631:53
In one of the examples below, you can see that the previous Odoo nodes had run sucessfully many times previously. This is similar behaviour to the postgresql node, recently fixed on fix(Postgres Node): Connection pool of the database object has been destroyed by michael-radency · Pull Request #7074 · n8n-io/n8n · GitHub
My odoo server seems to be working as expected, and odoo tech support ( as always) suggest it is a problem on the API access side.
Please share your workflow
2 examples of many:
Or:
Share the output returned by the last node
Information on your n8n setup
- n8n version: 1.4.1
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker):
- Operating system: Ubuntu, self host.