Unauthorized. Please check that your
RAILWAY_API_TOKENis valid and has access to the resource you're trying to use.
agoraleads
HOBBYOP
5 months ago
I am trying to deploy my project to railway using RAILWAY_API_TOKEN but for some reason I am unauthorized error. The same thing happens if I use RAILWAY_TOKEN with or without scope (e.g account, workspace, project).
Pinned Solution
5 months ago
Try setting the token without the quotation marks.
9 Replies
agoraleads
HOBBYOP
5 months ago
Yes I have, it still shows the same error message.
agoraleads
HOBBYOP
5 months ago
On Windows, I use:
set RAILWAY_TOKEN="secret-railway-token"
railway up --service <service-name> --detach
agoraleads
HOBBYOP
5 months ago
Command prompt
Anonymous
PRO
5 months ago
If removing the quotatio marks dont' work - try just single quotes ' '
0x5b62656e5d
Try setting the token without the quotation marks.
agoraleads
HOBBYOP
5 months ago
This worked, thank you so much!
Status changed to Solved brody • 5 months ago
