'"message": "Request failed with status code 400"

enter image description here { "errors": [ { "message": "Request failed with status code 400", "locations": [ { "line": 2, "column": 3 } ], "path": [ "launch" ], "extensions": { "code": "INTERNAL_SERVER_ERROR", "exception": { "config": { "url": "https://api.spacexdata.com/v3/launches/3", "method": "get", "headers": { "Accept": "application/json, text/plain, /", "User-Agent": "axios/0.21.1", "host": "api.spacexdata.com", "Proxy-Authorization": "Basic YTcxMDMwODpOb3J0aHdlc3QyMDIy" }, "transformRequest": [ null ], "transformResponse": [ null ], "timeout": 0, "xsrfCookieName": "XSRF-TOKEN", "xsrfHeaderName": "X-XSRF-TOKEN", "maxContentLength": -1, "maxBodyLength": -1 } } } } ], "data": { "launch": null } }

I am receiving this error and not able to find why its coming as the url working fine in the postman or in browser.

my query looks like

{ launches{ site, id } }

this the query i am doing in the playground of graphql



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source