I have been trying to connect to GitHub's GraphQL from a JavaScript project running locally but the connection fails.
I using a personal_access_token created on GitHub, the token is correct.
Strangely I have tried testing the token using a curl command (supplied by the good guys at GitHub):
$ curl -v -H "Authorization: bearer TOKEN" -X POST -d "{ \"query\": \"query { viewer { login }}\" }" 'https://api.github.com/graphql'
but the curl command fails to do anything from my machine - it DOES however work fine from other machines. On my machine the command just sits on the next line's cursor never failing or completing:
>
This has been looked at by GitHub support and I've tried: * different ways to connect (JS, GraphQL, curl) * creating new token * creating token with different permissions
But all have the exact same result - which suggests there is something different/wrong with the setup on my machine/network but I can't find anything which would affect this.
Any suggestions?
from curl to GitHub personal_access_token failing ONLY from my mac
No comments:
Post a Comment