Authentication issues with the Public Graph API
Anonymous
PROOP

8 months ago

Hi,

I am trying to get an Account Token to work but whether I user curl or an HTTP call I am getting Not Authorized errors.

curl --request POST \

--url https://backboard.railway.com/graphql/v2 \

--header 'Authorization: Bearer ****' \

--header 'Content-Type: application/json' \

--data '{"query":"query { me { name email } }"}'

{"errors":[{"message":"Not Authorized","locations":[{"line":1,"column":9}],"path":["me"],"extensions":{"code":"INTERNAL_SERVER_ERROR"},"traceId":"6717193895679864282"}],"data":null}

Are there any further steps to troubleshoot this?

Thanks.

Solved

2 Replies

Railway
BOT

8 months ago


8 months ago

Hey,

It looks like you are trying to run that query with a workspace-scoped token. For security reasons, a workspace token does not have the permissions to request data about the user.

Please try the same query with a token that is not scoped to any workspaces.

Best,

Brody


Status changed to Awaiting User Response Railway 8 months ago


Railway
BOT

8 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 8 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...