Proxy to Graphql #542
Unanswered
billmcknight1953
asked this question in
Q&A
Replies: 2 comments 5 replies
-
This is probably caused by the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Also getting the same issue |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am having difficulty proxying to a graphql endpoint whose endpoint is http://XXX.XXX.XXX.XXX:8080/graphql. The http-proxy-middleware code I am using in my express.js host is straightforward and simple:
The problem is that the response to this call is Bad Request (400) if the content type is application/json, which is the default from my Apollo grapqhl client. But curiously if I call the proxied endpoint using text/plain in POSTMAN, it works. If I call the graphql endpoint itself directly with POSTMAN, application/json it works as well. Anyone know why I am getting a Bad Request response?
Beta Was this translation helpful? Give feedback.
All reactions