Hi,
I’m trying to send a query through our automation software, VisualCron. I understand that this is a ShipHero support site (i.e. not a VisualCron support site), but I thought I’d ask here anyway just in case someone else is using the same tool.
I got an access token, and a query that works fine when run in the Altair chrome extension. When I choose the option “Copy as cURL”, I get this:
curl 'https://public-api.shiphero.com/graphql' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'Origin: chrome-extension://sdfijasdghsdifwfasdf' -H 'Authorization: Bearer MY_ACCESS_TOKEN' --data-binary '{"query":"query { \n user_quota { \n is_expired \n expiration_date \n time_remaining \n credits_remaining\n }\n}","variables":{}}' --compressed
Those are the parameters I’ve mimicked in my automation.
But it’s giving me this error:
All it says is “bad request”, but it doesn’t bother to tell me what’s “bad” about it. Looking at the “data-binary” parameter that shows up in the cURL, I see that it added more to my query, so I tried sending that:
This gave me the same error. Also, noting that apparently the data it’s sending is binary based on the parameter name, I tried putting my query in a text file and sending that, but still got the same error.
So I guess my question is, how do I tell why the request is “bad”?