RAILWAY_API_TOKENis valid and has access to the resource you're trying to use.
22 days 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
22 days ago
Try setting the token without the quotation marks.
9 Replies
22 days ago
Have you tried using a project scoped token with RAILWAY_TOKEN?
22 days ago
Yes I have, it still shows the same error message.
22 days ago
On Windows, I use:set RAILWAY_TOKEN="secret-railway-token"railway up --service <service-name> --detach
22 days ago
Are you using command prompt, powershell, or Git bash/WSL?
22 days ago
Command prompt
22 days ago
If removing the quotatio marks dont' work - try just single quotes ' '
0x5b62656e5d
Try setting the token without the quotation marks.
22 days ago
This worked, thank you so much!
Status changed to Solved brody • 21 days ago
