graphiql - Not Authorized
pereyrahugor
PROOP

a month ago

Hello everyone, I’m new to the community but I’ve been working with Railway for a while. Now I’m getting into the world of GraphiQL—or at least trying to—but I don’t fully understand how it works yet.

For that reason, I wanted to share my code and see if you could guide me a bit.

The idea is to get the currently active deployment of a project and be able to restart it.

Even though I’ve checked the variables and the token several times — my own, the team’s, and the team owner’s — I always get the same response.

{
message: 'Not Authorized',
locations: [ [Object] ],
path: [ 'deployments' ],
extensions: { code: 'INTERNALSERVERERROR' },
traceId: '5955051502654485157'
}

Solved$10 Bounty

1 Replies

pereyrahugor
PROOP

a month ago

The thing is, the problem wasn't the code or the GraphiQL query; it was that the action I wanted to perform was not authorized for the aforementioned token types.I was able to do it with a User Token.


pereyrahugor
PROOP

a month ago

!s


Status changed to Solved brody about 1 month ago


Loading...