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