Hi
After the upgrade of nextcloud (current: Nextcloud Hub 8 (29.0.2)) I bump into “Cannot read properties of undefined (reading ‘error’)” while using the “COPY” function (I suspect the “MOVE” might cause issues too.
Did the actions manually and found no blocking issues.
I believe it was the butler with the "PUT"put-stick in the "API"celler that changed in v29 of Nextcloud… but I ain’t no Benoit Blanc
The input;
[
{
"path": "AA_UPLOAD/CLEAN/FILENAME21.pdf",
"lastModified": "Fri, 07 Jun 2024 14:06:30 GMT",
"contentLength": "42526",
"contentType": "application/pdf",
"type": "file",
"eTag": "490a0a7f60516a009c4a4c0169561db7"
}
]
Looks as expected, and the content (in binary form) is what it should be.
The output error however;
{
"errorMessage": "Cannot read properties of undefined (reading 'error')",
"errorDetails": {},
"n8nDetails": {
"n8nVersion": "1.44.1 (Self Hosted)",
"binaryDataMode": "default",
"stackTrace": [
"TypeError: Cannot read properties of undefined (reading 'error')",
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:666:253",
" at processTicksAndRejections (node:internal/process/task_queues:95:5)",
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1079:20"
]
}
}
Information on your n8n setup
n8n version: 1.44.1
Database (default: SQLite): Postgres
n8n EXECUTIONS_PROCESS setting (default: own, main):
Running n8n via : Docker version 26.0.2
**Operating system: Ubuntu **
n8n
June 7, 2024, 3:07pm
2
It looks like your topic is missing some important information. Could you provide the following if applicable.
n8n version:
Database (default: SQLite):
n8n EXECUTIONS_PROCESS setting (default: own, main):
Running n8n via (Docker, npm, n8n cloud, desktop app):
Operating system:
Ketter
June 12, 2024, 2:18pm
3
This issue has been resolved in 1.44.2. (verified with docker release)
And I believe the resolution can be found here;
opened 09:25AM - 07 Jun 24 UTC
in linear
Released
### Bug Description
When attempting to perform a PUT request using the HTTP R… equest node in n8n, I encounter the following error:
`Cannot read properties of undefined (reading 'error')`
Full Stack Trace:
`TypeError: Cannot read properties of undefined (reading 'error')
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:666:253
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1079:20`
Although the PUT request appears to proceed as expected, it seems that the code attempts to read the error property even when there is no error present in the response. This forced reading of the error variable causes the TypeError mentioned above.
### To Reproduce
1. Set up an HTTP Request node with a PUT method.
2. Execute the workflow.
3. Observe the error in the execution logs.
### Expected behavior
The workflow should handle responses without errors gracefully and should not attempt to read the error property when it is undefined.
### Operating System
Debian 12 (Bookworm)
### n8n Version
1.44.1
### Node.js Version
v20.13.1
### Database
SQLite (default)
### Execution mode
main (default)
Alaaf!
1 Like
system
Closed
June 19, 2024, 2:18pm
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.