erajasekar
Explore posts from serversGetting CancelledError Python FastAPI application using openai chat completion
I have Python FastAPI application that uses openai's chat completion api with stream. I am getting CancelledError very frequently. I also added timeout middleware with 2 mins timeout and is still same error.
The same prompts works fine on my local machine. It's happening only in Railway. I guess may have to tweak some timeout out setting in Railway. I will provide full stack trace below. Please let me know how to resolve it.
38 replies
Using JSON File as Environment variable in Railway for Firebase
Railway only allows defining environment variables with values inline. But to authenticate with firebase, I need to use a json file like
firebase-service-account.json
and provide path to this file as value of env variable GOOGLE_APPLICATION_CREDENTIALS
. How do I do this in build setup?37 replies