Strapi error 405 (n8n local or self host)

Hello/

strapi io mistake

Error: Request failed with status code 405
    at createError (/root/.npm/_npx/a8a7eec953f1f314/node_modules/axios/lib/core/createError.js:16:15)
    at settle (/root/.npm/_npx/a8a7eec953f1f314/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/root/.npm/_npx/a8a7eec953f1f314/node_modules/axios/lib/adapters/http.js:269:11)
    at IncomingMessage.emit (events.js:412:35)
    at endReadableNT (internal/streams/readable.js:1334:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)

Welcome to the community @RomanRRR

Can you please elaborate?

when i connect to strapi , my n8n print error

ERROR: Request failed with status code 405
 Details
Stack
Error: Request failed with status code 405
    at createError (/root/.npm/_npx/a8a7eec953f1f314/node_modules/axios/lib/core/createError.js:16:15)
    at settle (/root/.npm/_npx/a8a7eec953f1f314/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/root/.npm/_npx/a8a7eec953f1f314/node_modules/axios/lib/adapters/http.js:269:11)
    at IncomingMessage.emit (events.js:412:35)
    at endReadableNT (internal/streams/readable.js:1334:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)

What is the workflow doing? Is it all strapi connections?

What version of n8n are you running and how is it deployed (npm / docker / desktop)?

workflow empty - only strapi get
About n8n

n8n Version

0.159.1

npm

http://..178.45:1337/admin/

Dear technical support.
Please check and make a detailed demo on how to connect to strapi.

the instruction that you have in the help - does not work.

Hey @RomanRRR,

I will take a look at this Monday morning unless someone else takes a look first.

Are you running Strapi in a container or some other way? Which version of Strapi are you running as well?

Have you also tried other options with the strapi node can you also tell me which permissions you assigned the role in Strapi?

Are you running Strapi in a container or some other way?

  • I run strapi on my self ost server
    Which version of Strapi are you running as well?
    STRAPI VERSION v4.0.4

can you also tell me which permissions you assigned the role in Strapi?

  • all permissions// i also give many permissions to unautorized user

Have you also tried other options with the strapi node
website get info from strapi. all work correct

Hey @RomanRRR,

I have just given it a test here using the steps provided on the credentials page and I can confirm it does work with Strapi 4.0.5.

The one bit that caught me out which I suspect could be your problem is the URL for Strapi, In my test environment I had Strapi running on 192.168.42.79 so my URL was “http://192.168.42.79:1337/api” could be worth making sure that you have the /api part added to your URL.

2 Likes