You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I've mounted my Chainlit app as a FastAPI sub-application as outlined here https://docs.chainlit.io/integrations/fastapi. I've tested this locally and it works as expected.
I tried to deploy the app as a FastAPI on Posit Connect, and when navigating to /chainlit, I get redirected to 127.0.0.1. The /docs and /app do work as expected which means FastAPI is correctly set up.
Tried adding environmental variables with no effect:
CHAINLIT_HEADLESS = true
CHAINLIT_NO_ONBOARDING = true
CHAINLIT_PUBLIC_PATH = '/chainlit'
When started locally on the sub path is it working? What version of Chainlit are you using?
Yes, it works locally, either by using "chainlit run" or by running a FastAPI with uvicorn web server and navigating to "localhost/chainlit" I'm using 1.3.2, however I just upgraded to 2.0.0 and got the same issue.
Posit Support replied back saying "Chainlit doesn't appear to correctly handle running behind a proxy with a non-empty root path." I'm not sure I necessarily buy this.
Describe the bug
I've mounted my Chainlit app as a FastAPI sub-application as outlined here https://docs.chainlit.io/integrations/fastapi. I've tested this locally and it works as expected.
I tried to deploy the app as a FastAPI on Posit Connect, and when navigating to /chainlit, I get redirected to 127.0.0.1. The /docs and /app do work as expected which means FastAPI is correctly set up.
Tried adding environmental variables with no effect:
CHAINLIT_HEADLESS = true
CHAINLIT_NO_ONBOARDING = true
CHAINLIT_PUBLIC_PATH = '/chainlit'
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expect to see the app load. Instead, redirected to 127.0.0.1/[rest_of_URL]/chainlit and a 'page not found' error.
Note if mounting locally using uvicorn, the app loads fine.
The text was updated successfully, but these errors were encountered: