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
Percy16mo ago
Project ID: N/A
MantisInABox
MantisInABox16mo ago
N/A
Percy
Percy16mo ago
You might find these helpful: - Getting Started | Railway Docs
⚠️ experimental feature
milo
milo16mo ago
unable to parse config file try delete the config file and start again
MantisInABox
MantisInABox16mo 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
Brody16mo ago
race condition when writing to the config file, neb is new to programming 🙂
MantisInABox
MantisInABox16mo 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
Brody16mo ago
greg has already added atomic config file writes https://github.com/railwayapp/cli/pull/394
MantisInABox
MantisInABox16mo ago
Glad it was merged, now it needs to be released! 🤣🤣🤣
Brody
Brody16mo ago
merged 5 days ago, last release was 3 days ago latest ver 3.0.18
MantisInABox
MantisInABox16mo ago
I installed it last night on a fresh os install, so, it be broken! 🤣🤣
Brody
Brody16mo ago
did you manually fix the config file first?
MantisInABox
MantisInABox16mo ago
That’s how I got it working after it broke
Brody
Brody16mo ago
json is hard
Want results from more Discord servers?
Add your server
More Posts