CLI not staying logged in

On a fresh OS install, and logging in to the Railway CLI, I could not initiate a new project. It said I needed to run railway login, so I did it again, and this was the results.
14 Replies
Percy
Percy2y ago
Project ID: N/A
MantisInABox
MantisInABoxOP2y ago
N/A
Percy
Percy2y ago
You might find these helpful: - Getting Started | Railway Docs
⚠️ experimental feature
milo
milo2y ago
unable to parse config file try delete the config file and start again
MantisInABox
MantisInABoxOP2y ago
Where is it stored? Nevermind. I found it. It looks like it popped the token in there a second time! 😅 We are good now!
Brody
Brody2y ago
race condition when writing to the config file, neb is new to programming 🙂
MantisInABox
MantisInABoxOP2y ago
Maybe we can add some logic checking, that if the login token is set, it doesn’t write a whole new set of lines, at the end of the file if you run the command again! Hahahaha
Brody
Brody2y ago
greg has already added atomic config file writes https://github.com/railwayapp/cli/pull/394
MantisInABox
MantisInABoxOP2y ago
Glad it was merged, now it needs to be released! 🤣🤣🤣
Brody
Brody2y ago
merged 5 days ago, last release was 3 days ago latest ver 3.0.18
MantisInABox
MantisInABoxOP2y ago
I installed it last night on a fresh os install, so, it be broken! 🤣🤣
Brody
Brody2y ago
did you manually fix the config file first?
MantisInABox
MantisInABoxOP2y ago
That’s how I got it working after it broke
Brody
Brody2y ago
json is hard
Want results from more Discord servers?
Add your server