The internal API Post method could not work

I tried to use http request node in n8n, it could work well when I used the Get method. However, when I switched the POST method, I got the 404 error.

Go to the log file, there are only messages like following.

404 - “{"detail":"Not Found"}”
404 - “{"detail":"Not Found"}”
404 - “{"detail":"Not Found"}”

Could anyone help me? Thanks a lot.

hello @Kaiheng_Lu

It’s a question to the internal API. From n8n side there is no issues. You can try to perform a request with curl command to check

Thanks very much for your replying. I tried to use postman and curl. Both these two methods could work well.

curl --location ‘https://zf-itso-api/api/prod/oa2/v1/login/
–header ‘accept: application/json’
–header ‘Content-Type: application/x-www-form-urlencoded’
–data-urlencode ‘grant_type=password’
–data-urlencode ‘username=xxxx’
–data-urlencode ‘password=xxxxxxxxx’

Since the n8n was deployed locally, I thought it should work well on request node too.

You can try to use GET method with enabled option “use Query Parameters” to specify the username, password and grant_type.

Thanks, since it’s a post method. I tried to use get, but got the request type not correct error.

What is happening if you will use the POST method with the url without any headers and body parameters? Will it output the 404 error?

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