Method not allowed - please check you are using the right HTTP method

Hey,
I saw that someone else had the same issue, but the thread gave no solution.

I have built a simple API looking like this:

@app.get(“/”)
def read_root():
print(‘hello’)
return {“message”: “Hello, World!”}

@app.post(“/main”)
async def received_request():
print(‘gugug’)
return {“message” : “hello again”}

Both endpoints are accessible via browser or postmen. The Get (/) endpoint is also accessible via the http:// module of n8n. If I try to access the second endpoint (Post /main), I get an error.

What is the error message (if any)?

Method not allowed - please check you are using the right HTTP method.

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.75.2
  • No database
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via Docker
  • **Operating system:Windows

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:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.