First time user of n8n - Nextcloud error

Hi All, trying n8n for the first time and using the existing workflow from n8n to download attachments from gmail to nextcloud (selfhosted). I have been able to successfully connect with gmail, however having issue connecting with nextcloud.

for my nextcloud setup it is a basic setup with no ssl

Describe the issue/error/question


NodeApiError: UNKNOWN ERROR - check the detailed error for more information
    at Object.nextCloudApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/NextCloud/GenericFunctions.js:49:15)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/NextCloud/NextCloud.node.js:1084:36)
    at async /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/src/WorkflowExecute.js:451:47

What is the error message (if any)?

Please share the workflow

(Select the nodes and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow respectively)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database you’re using (default: SQLite):
  • Running n8n with the execution process [own(default), main]:
  • Running n8n via [Docker, npm,, desktop app]:

Hi @Jay_Choudhary, welcome to the community!

It looks like the error is related to your SSL certificate. Since you mentioned you aren’t using SSL, is there a chance the URL in your Nextcloud credentials in n8n uses https instead of http?

Thanks yes , I am using environment variable “NODE_TLS_REJECT_UNAUTHORIZED” to fix this issue.