Graphql POST not working, GET works

Describe the problem/error/question

When I make a Graphql/HTTP POST request to the graphql endpoint for ShipHero, the API always returns a 500 error. The same method/body works in Postman with no issues.

I also pointed both requests to a requestbin, and couldn’t see any tangible difference

What is the error message (if any)?

500 error from the endpoint

Please share your workflow

Share the output returned by the last node

[
{
"message": 
"Unexpected error. Please contact a system administrator."
}
]

Information on your n8n setup

  • n8n version: 1.17.1
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own, main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu

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:

Hey @JoeyP91,

Welcome to the community :raised_hands:

Does Shiphero provide any kind of logging that may help? Are you also doing the same auth request in Postman?

Hi @Jon

I am not sure RE shiphero logging - I could not find anything unfortunately.

Regarding auth, I actually use the token generated in the first step of my n8n workflow in Postman as well. So both requests use the same token.

Hey @JoeyP91,

Sadly that is all I have at the moment without seeing something that shows the post data from both attempts. It looks like something is returning the “please contact a system administrator” message so it would be handy to see where that is coming from.

Hi Jon,

I’ve managed to get it working by setting the Request Format to JSON on the GraphQL node. Thanks for your assistance and hope this helps someone else in the future.

1 Like

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