a month ago
I am using an account level token to restart and/or redeploy containers and I keep getting not authorized. I have tried with different account scoped tokens all with the same result. THe agent suggested i create a support ticket.
—
Error:
Railway GraphQL error: Not Authorized
—
Token used for redeploy:
VADER_RAILWAY_API_TOKEN
—
RAILWAY_TOKEN is not used by this adapter.
app/config.py:251-252
loads
VADER_RAILWAY_API_TOKEN
and
VADER_RAILWAY_PROJECT_TOKEN
through the
VADER_
settings prefix.
—
Authentication:
redeploy explicitly uses
prefer="account"
and sends:
—
—
Authorization: Bearer <VADER_RAILWAY_API_TOKEN>
——
This is implemented in
tools/adapters/railway.py:438-456
.
—
Endpoint:
the configured default is:
—
—
https://backboard.railway.app/graphql/v2
——
not
https://api.railway.app/graphql
(
tools/adapters/railway.py:15
).
—
Mutation:
deploymentRedeploy
, with deployment ID:
—
—
3c4cca07-aced-48e9-baef-e7edd51c1e2c
——
Project:
52f2d6ea-4231-467e-bc53-79610e04dfc3
{ "errors": [ { "message": "Not Authorized", "locations": [ { "line": 1, "column": 9 } ], "path": [ "me" ], "extensions": { "code": "INTERNAL_SERVER_ERROR" }, "traceId": "4331812924184202645" } ], "data": null
1 Replies
a month ago
This thread has been opened as a bounty so the community can help solve it.
Status changed to Open Railway • about 1 month ago