some requests don't get completed for me, railway drops them, how to make all requests go through

2 years ago

issue

Solved

36 Replies

2 years ago

0d433bdd-6874-4b2f-837b-2015b5e6e29f


2 years ago

its super important to fix as its dropping production due to this


2 years ago

1348691958125690890


2 years ago

using metal if that matters


2 years ago

perhaps there is a thing to never drop network requests


2 years ago

some kind of plan or smth


2 years ago

this mby?

1348692180302168184


2 years ago

can you explain what you mean by dropping requests and tell us why you think its a platform fault instead of a fault of your app?


2 years ago

yea essentially some requests stall out

and some requests don't get delivered


2 years ago

when there is more traffic


2 years ago

im testing things out with google cloud run now


2 years ago

what service?


2 years ago

to test the theory that its railway issue


2 years ago

1348692517222350908


2 years ago

its this one


2 years ago

i remember i had similar issue mby year ago


2 years ago

and there was a setting


2 years ago

to scale network or smth


2 years ago

but can't find it now in ui


2 years ago

what is your start command


2 years ago

1348693070157320262


2 years ago

is the dockerfile


2 years ago

FROM python:3.12-slim

COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/

COPY . /app

WORKDIR /app
RUN uv sync --frozen --no-cache

CMD ["/app/.venv/bin/fastapi", "run", "app/main.py", "--host", "0.0.0.0", "--port", "80"]

2 years ago

if you mean that


2 years ago

looks like that is starting a development server


2 years ago

oh so its starts dev server in prod?


2 years ago

im so bad at dockerfiles fml


2 years ago

fastapi should be ran with unvicorn


2 years ago

ok let me see how to change


2 years ago

FROM python:3.12-slim

WORKDIR /app
COPY . /app

# Install dependencies directly without virtual environment
RUN pip install --no-cache-dir fastapi uvicorn[standard] requests pydantic-settings python-dotenv supabase

EXPOSE 8080

CMD uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-8080}

2 years ago

perhaps this is better


2 years ago

so going forward lets refrain from pointing fingers at the platform unless a team member says it an issue with the platform


2 years ago

oh yea i don't blame railway, i just thought it was on them


2 years ago

but yea will just refrain from this


2 years ago

and list the dockerfile too


2 years ago

!s


Status changed to Solved brody • over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...