How can I resolve a 502 error using Postman?

I received a requisition here to work with a REST API, but one of the methods used (POST), is a GraphQL instead of simple JSON. Using Postman, the query (all hard coded, included the string sent) works fine, on Mendix, I get a 502 error. Can someone point me with something? - @Gustavo
1 answers

It ended up not being anything related to the http headers, but instead the JSON data. Since the GraphQL query goes inside a JSON containing "query":"GRAPHQLINSTRUCTION", THERE WERE A LOT OF escape characters that needed to be included, like /n, /t, /t, /", etc. Once I did all that it worked fine. - @Gustavo