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

a year ago

issue

Solved

36 Replies

nikiv
HOBBYOP

a year ago

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


nikiv
HOBBYOP

a year ago

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


nikiv
HOBBYOP

a year ago

1348691958125691000


nikiv
HOBBYOP

a year ago

using metal if that matters


nikiv
HOBBYOP

a year ago

perhaps there is a thing to never drop network requests


nikiv
HOBBYOP

a year ago

some kind of plan or smth


nikiv
HOBBYOP

a year ago

this mby?

1348692180302168000


brody
EMPLOYEE

a year 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?


nikiv
HOBBYOP

a year ago

yea essentially some requests stall out
and some requests don't get delivered


nikiv
HOBBYOP

a year ago

when there is more traffic


nikiv
HOBBYOP

a year ago

im testing things out with google cloud run now


brody
EMPLOYEE

a year ago

what service?


nikiv
HOBBYOP

a year ago

to test the theory that its railway issue


nikiv
HOBBYOP

a year ago

1348692517222350800


nikiv
HOBBYOP

a year ago

its this one


nikiv
HOBBYOP

a year ago

i remember i had similar issue mby year ago


nikiv
HOBBYOP

a year ago

and there was a setting


nikiv
HOBBYOP

a year ago

to scale network or smth


nikiv
HOBBYOP

a year ago

but can't find it now in ui


brody
EMPLOYEE

a year ago

what is your start command


nikiv
HOBBYOP

a year ago

1348693070157320200


nikiv
HOBBYOP

a year ago

is the dockerfile


nikiv
HOBBYOP

a year 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"]

nikiv
HOBBYOP

a year ago

if you mean that


brody
EMPLOYEE

a year ago

looks like that is starting a development server


nikiv
HOBBYOP

a year ago

oh so its starts dev server in prod?


nikiv
HOBBYOP

a year ago

im so bad at dockerfiles fml


brody
EMPLOYEE

a year ago

fastapi should be ran with unvicorn


nikiv
HOBBYOP

a year ago

ok let me see how to change


nikiv
HOBBYOP

a year 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}

nikiv
HOBBYOP

a year ago

perhaps this is better


brody
EMPLOYEE

a year ago

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


nikiv
HOBBYOP

a year ago

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


nikiv
HOBBYOP

a year ago

but yea will just refrain from this


nikiv
HOBBYOP

a year ago

and list the dockerfile too


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody 11 months ago


Loading...