Hi all,
I’ve been using a workflow like this one to back up and (most importantly) version control our workflows on n8n cloud:
It pulls a list of workflows down from the URL:
http://localhost:5678/rest/workflows
@jan kindly gave me this URL back in December.
Although the workflow has worked since December, and has never changed, access to the above URL began failing a while ago:
{"status":"rejected","reason":{"message":"401 - \"Unauthorized\"","name":"Error","stack":"Error: Request failed with status code 401\n at createError (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/createError.js:16:15)\n at settle (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/settle.js:17:12)\n at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/adapters/http.js:269:11)\n at IncomingMessage.emit (node:events:538:35)\n at IncomingMessage.emit (node:domain:475:12)\n at endReadableNT (node:internal/streams/readable:1345:12)\n at processTicksAndRejections (node:internal/process/task_queues:83:21)"}}
Has something changed on n8n cloud to prevent localhost access?