R
Railway•14mo ago
jerome

The prompt configuration is invalid: Available options can not be empty

In my terminal, when I run railway link to get access to my PG database, I make the two selections provided, but get the error above. Here is a copy paste from my terminal window:
~ > railway link
> Select a project fiery-mind
> Select an environment production
Failed to prompt for select

Caused by:
The prompt configuration is invalid: Available options can not be empty
~ > railway link
> Select a project fiery-mind
> Select an environment production
Failed to prompt for select

Caused by:
The prompt configuration is invalid: Available options can not be empty
I followed the instructions on https://docs.railway.app/develop/cli but clearly am not doing something right. Any help would be appreciated.
Railway Docs
CLI | Railway Docs
Documentation for Railway
24 Replies
Brody
Brody•14mo ago
your project would need a service, otherwise there would be nothing to link to
jerome
jeromeOP•14mo ago
So follow the instructions under "Add Database Service" correct?
Brody
Brody•14mo ago
correct
jerome
jeromeOP•14mo ago
~ > railway add
No linked project found. Run railway link to connect to a project, and a service.
~ > railway add
No linked project found. Run railway link to connect to a project, and a service.
Feels like a catch-22
Brody
Brody•14mo ago
interesting for now, just add a service to your project with the railway dashboard
jerome
jeromeOP•14mo ago
ah! now i understand. i was supposed to add a database (service) to my project (ecom site), not create a database and then link it to my project. hopefully i'm wording those concepts correctly. or wait, a project is more like a namespace inside of which are different services. is that the right way to look at it?
Brody
Brody•14mo ago
can you show me a screenshot of your project in railway?
jerome
jeromeOP•14mo ago
No description
jerome
jeromeOP•14mo ago
this you mean?
Brody
Brody•14mo ago
yes, is this the same project you tried to link to?
jerome
jeromeOP•14mo ago
initially i just created a postgres project with the intention of then linking it programatically to my project on github. the idea that a service belongs to a project wasn't clear to me.
Brody
Brody•14mo ago
what did you have in this project that you tried to link to
jerome
jeromeOP•14mo ago
the database one?
Brody
Brody•14mo ago
fiery-mind
jerome
jeromeOP•14mo ago
i had two separate projects, one a database and the other a node project that was a database
Brody
Brody•14mo ago
what was in fiery-mind just a database
jerome
jeromeOP•14mo ago
yes
Brody
Brody•14mo ago
okay thank you, im going to be working with milo (cool rust dev) to fix these little edge cases
jerome
jeromeOP•14mo ago
this video clarified for me what i needed to do
jerome
jeromeOP•14mo ago
Wappler
YouTube
Database Connection with Railway
In this video, I will show you how to create a MySQL database without having to install a database server on your local system. For this, I will be using railway to store the database.
jerome
jeromeOP•14mo ago
might be good if railway developed some similar videos. it was the aha i needed.
Brody
Brody•14mo ago
videos are very helpfull
jerome
jeromeOP•14mo ago
thank you for your time, brody.
Brody
Brody•14mo ago
no problem 🙂 now fixed in https://github.com/railwayapp/cli/pull/461
Want results from more Discord servers?
Add your server