CLI throwing "Unauthorized" with RAILWAY_TOKEN
romain-courtsidelabs
HOBBYOP

a month ago

This worked a few hours ago with the same token (it hasn't changed in my project settings since). now when I run RAILWAY_TOKEN=${PROJECT_TOKEN} railway status it throws:

Unauthorized. Please login with `railway login`

I'm trying to deploy a service from GitHub Actions, and can't use the Railway CLI Docker image because I need a bunch of custom things installed in that job.

Solved

5 Replies

Railway
BOT

a month ago

Hello!

We're acknowledging your issue and attaching a ticket to this thread.

We don't have an ETA for it, but, our engineering team will take a look and you will be updated as we update the ticket.

Please reply to this thread if you have any questions!


brody
EMPLOYEE

a month ago

Hey, we will be looking into this!


tgarrett-verygoodapps
PRO

a month ago

I'm seeing this issue as well. Fails in CI as will as local with the latest CLI installed.


damyantuta
PRO

a month ago

We're experiencing the same issue aswell


Anonymous
PRO

a month ago

I'm getting the same issue.


brody
EMPLOYEE

a month ago

We are pushing out a fix for this shortly.


Anonymous
PRO

a month ago

I filed a ticket with a script to reproduce.


0xmukesh
PRO

a month ago

is there any update regarding this?


0xmukesh
PRO

a month ago

i'm facing this issue


0xmukesh
PRO

a month ago

and it is a huge blocker for me rn for deploying my services


Status changed to Solved brody 27 days ago


Railway
BOT

a month ago

✅ The ticket Access Issues with CLI Command has been marked as completed.


cc @nuno costa - are you still seeing this issue?


nunommc
FREE

a month ago

Yes


nunommc
FREE

a month ago

I used railway login --browserless maybe 20 times, and it always shows this:

    ~/rails/mfsdfsd    master *65 ?36  railway login --browserless                                                                                                                           ✔  2.7.8Browserless Login
Please visit:
  https://railway.com/cli-login?d=d29yZENvZGU9b3JhbmdlLWF0dHJhY3RpdmUtbW....lc3RhdGlvbiZob3N0bmFtZT1iYWNodXM=
Your pairing code is: orange-attractive-manifestation
Logged in as nuno.mmc@gmail.com
    ~/rails/mfsdfsd    master *65 ?36  railway ssh                                                                                                                                   ✔  11s   2.7.8Unauthorized. Please login with `railway login`
    ~/rails/mfsdfsd    master *65 ?36  railway ssh                                                                                                                                         1 ✘  2.7.8Unauthorized. Please login with `railway login`

Whats your CLI version?
railway -V


nunommc
FREE

a month ago

$ railway -V                                                                                                                           
railway 4.11.0

Have you tried resetting the login altogether?

Deleting ~/.railway and doing the login + link to project/service from scratch


nunommc
FREE

25 days ago

I deleted ~/.railway/config.json and tried again and it worked! 👍🏻

However, I still notice one small glitch, when I call railway link it doesn't show in my console options to select, it looks like it's hanging, then I press and it selects my the default option which wasn't visible


nunommc
FREE

25 days ago


Loading...