Mike 🦑
Mike 🦑
RRailway
Created by johns on 1/28/2024 in #✋|help
Is there an outage with auth?
+1
13 replies
RRailway
Created by Mike 🦑 on 1/12/2024 in #✋|help
FastAPI + Hypercorn dropping connection after 60 seconds
Solved! Something in the nix-built dockerfiles is dropping posts after 60 seconds. Deployed via my own dockerfile and we’re cooking 👨‍🍳 thanks for your help again Brody!
46 replies
RRailway
Created by Mike 🦑 on 1/12/2024 in #✋|help
FastAPI + Hypercorn dropping connection after 60 seconds
thanks for trying to help 🙏
46 replies
RRailway
Created by Mike 🦑 on 1/12/2024 in #✋|help
FastAPI + Hypercorn dropping connection after 60 seconds
okay thanks Brody nah its fine
46 replies
RRailway
Created by Mike 🦑 on 1/12/2024 in #✋|help
FastAPI + Hypercorn dropping connection after 60 seconds
might try deploy with another cloud provider to test...
46 replies
RRailway
Created by Mike 🦑 on 1/12/2024 in #✋|help
FastAPI + Hypercorn dropping connection after 60 seconds
timeouts look fine for both locally
46 replies
RRailway
Created by Mike 🦑 on 1/12/2024 in #✋|help
FastAPI + Hypercorn dropping connection after 60 seconds
some requests in prod take longer than 60 seconds
46 replies
RRailway
Created by Mike 🦑 on 1/12/2024 in #✋|help
FastAPI + Hypercorn dropping connection after 60 seconds
i'm just calling sleep(65) on my end to test
46 replies
RRailway
Created by Mike 🦑 on 1/12/2024 in #✋|help
FastAPI + Hypercorn dropping connection after 60 seconds
46 replies
RRailway
Created by Mike 🦑 on 1/12/2024 in #✋|help
FastAPI + Hypercorn dropping connection after 60 seconds
requests.post(url, headers=headers, data=json.dumps(data))
46 replies
RRailway
Created by Mike 🦑 on 1/12/2024 in #✋|help
FastAPI + Hypercorn dropping connection after 60 seconds
hmm might be.... testing with python requests
46 replies
RRailway
Created by Mike 🦑 on 1/12/2024 in #✋|help
FastAPI + Hypercorn dropping connection after 60 seconds
i'm so lost
46 replies
RRailway
Created by Mike 🦑 on 1/12/2024 in #✋|help
FastAPI + Hypercorn dropping connection after 60 seconds
can you share the code that you're using? I have now deployed servers with: - flask + gunicorn - (uvicorn | gunicorn | hypercorn) + fastapi - expressJS ALL have a POST timeout at 60 seconds
46 replies
RRailway
Created by Mike 🦑 on 1/12/2024 in #✋|help
FastAPI + Hypercorn dropping connection after 60 seconds
fastapi keeps running even when the connection drops, so i feel it has to be this right?
46 replies
RRailway
Created by Mike 🦑 on 1/12/2024 in #✋|help
FastAPI + Hypercorn dropping connection after 60 seconds
only when i deploy, it gives me the error
46 replies
RRailway
Created by Mike 🦑 on 1/12/2024 in #✋|help
FastAPI + Hypercorn dropping connection after 60 seconds
all three work on localhost
46 replies
RRailway
Created by Mike 🦑 on 1/12/2024 in #✋|help
FastAPI + Hypercorn dropping connection after 60 seconds
apparently default nginx SSL Timeout is 60 seconds thats why i suspected
46 replies
RRailway
Created by Mike 🦑 on 1/12/2024 in #✋|help
FastAPI + Hypercorn dropping connection after 60 seconds
what does it use? i've tried everything possible now - gunicorn, uvicorn, hypercorn. all with the same error. 60 second connection drops
46 replies
RRailway
Created by Mike 🦑 on 1/12/2024 in #✋|help
FastAPI + Hypercorn dropping connection after 60 seconds
would it have something to do with nginx? can i change the config on railway? all other settings look fine in hypercorn :/
46 replies
RRailway
Created by Mike 🦑 on 1/12/2024 in #✋|help
FastAPI + Hypercorn dropping connection after 60 seconds
hmm now even tried migrating to gunicorn and uvicorn and still same issue... this feels like an SSL / Railway issue. Still works fine on localhost
46 replies