𝘬𝘒𝘱𝘱𝘺
𝘬𝘒𝘱𝘱𝘺
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 10/2/2024 in #βœ‹ο½œhelp
HTTPX/requests cannot send REST requests to other service
I am trying to get API data from another service I have in the same project. The code is not changed in a week and it suddenly stopped working today. The service making the request is a Pycord bot towards FastAPI service
29 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 6/12/2024 in #βœ‹ο½œhelp
Is a self-hosted mail service possible to host on Railway?
Basically the title. Is it feasible to do this on Railway or should I try to do it elsewhere? I was asked by my client about this and I am not sure if this is possible from my limited-in-scope research
5 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 5/20/2024 in #βœ‹ο½œhelp
How to transform "docker run" commands into railway.json or Custom Start Command
Hi there! I'm trying to make a service using this docker image: https://hub.docker.com/r/pixboost/transformimgs and I want to allow changing the port value and setting the 3 options as environment variables. The docs describe on how to set this using docker run like so:
$ docker run -p 8080:8080 pixboost/transformimgs [OPTIONS]
$ docker run -p 8080:8080 pixboost/transformimgs [OPTIONS]
So my question is is there a way to do this with the railway.json or Custom Start Command? I had a hard time trying to find the answer beforehand so I'm asking this here as a future reference for anyone who needs this
5 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 4/15/2024 in #βœ‹ο½œhelp
SQLalchemy could not translate host name "postgres.railway.internal"
Basically I'm making a engine with env var stored in DATABASE_PRIVATE_URL that references my Postgres DB internal address like following:
SQLALCHEMY_DATABASE_URL: str | None = os.environ.get("DATABASE_PRIVATE_URL")
if SQLALCHEMY_DATABASE_URL != None:
engine = create_engine(SQLALCHEMY_DATABASE_URL)
(...)
SQLALCHEMY_DATABASE_URL: str | None = os.environ.get("DATABASE_PRIVATE_URL")
if SQLALCHEMY_DATABASE_URL != None:
engine = create_engine(SQLALCHEMY_DATABASE_URL)
(...)
Using the public address seems to work, but using the postgres.railway.internal address yields this error: sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not translate host name "postgres.railway.internal" to address: Name or service not known I am not sure if changing the address to postgres would resolve it?
17 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 7/31/2023 in #βœ‹ο½œhelp
Build successful but push fails after 6 minutes
Hello! So I have recently tried to use the Volume feature to store some files on it, but after the recent incidents I am still unable to deploy my Python Discord app. I can't really debug the issue since Build Logs stop on ο»ΏPublish time and Deploy Logs never generate.
4 replies
RRailway
Created by 𝘬𝘒𝘱𝘱𝘺 on 1/2/2023 in #βœ‹ο½œhelp
Cannot see Deployments for my server
Hello! I have made a Railway server to host a THREE.js server for my group project with two buddies of mine. They are part of my Github repo and can commit to main. However when just try to see the website, all I see is a older version of our app. All mine changes are visible to them. What would be the cause to this problem? (If further info needed just ask me)
72 replies