R
Railway•9mo ago
June

Hello! Not sure what's going on with Railway or Strapi

Hello! I have an issue with the domain generated by Railway (I think). I'm not using Railway's Strapi service; instead, I uploaded it through a GitHub repository. Everything is set up correctly; I configured the Railway database to integrate with the repository. But I'm facing an issue with the domain provided by Railway. Every time it's finishing the upload, the following error occurs:
> wildest-wild-portfolio@0.1.0 start
> strapi start
> [2023-12-14 18:48:26.851] error: getaddrinfo ENOTFOUND (HERE IS THE RAILWAY DOMAIN)
Error: getaddrinfo ENOTFOUND (HERE IS THE RAILWAY DOMAIN)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26)
> wildest-wild-portfolio@0.1.0 start
> strapi start
> [2023-12-14 18:48:26.851] error: getaddrinfo ENOTFOUND (HERE IS THE RAILWAY DOMAIN)
Error: getaddrinfo ENOTFOUND (HERE IS THE RAILWAY DOMAIN)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26)
This is my first time using Railway and seeking help here. If you need any additional information, please let me know. Thank you for your time.
No description
39 Replies
Percy
Percy•9mo ago
Project ID: N/A
Brody
Brody•9mo ago
looks like maybe you are trying to set the database url as your railway domain? can you show me a screenshot of your railway project?
June
June•9mo ago
Clear! Specifically what you want me to show you. What about the services?
Brody
Brody•9mo ago
nothing specific, I'd just like a screenshot of the project
June
June•9mo ago
Something like that?
No description
Brody
Brody•9mo ago
perfect can I see your database.js file?
June
June•9mo ago
Sure
June
June•9mo ago
No description
June
June•9mo ago
Do you think it's because I'm not using Strapi's env()?
Brody
Brody•9mo ago
I don't can you show me your service variables on the strapi service? I'd like a screenshot of what the raw editor shows, of course block off anything that may be sensitive
June
June•9mo ago
So?
No description
Brody
Brody•9mo ago
^ could you please use reference variables for all database related variables? https://docs.railway.app/guides/variables#reference-variables
June
June•9mo ago
Yes I think so. Shared right?
Brody
Brody•9mo ago
reference the postgres service, please read the link.. Referencing another service's variable
June
June•9mo ago
Thanks for the information, I'm already doing it. Ready, the variables are linked to the database. it looks something like this. PGHOST=${{Postgres.PGHOST}} PGPORT=${{Postgres.PGPORT}} PGDATABASE=${{Postgres.PGDATABASE}} PGUSER=${{Postgres.PGUSER}} PGPASSWORD=${{Postgres.PGPASSWORD}} POSTGRES_DB=${{Postgres.POSTGRES_DB}}
Want results from more Discord servers?
Add your server