Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the FastAPI app being mounted. #1174

Merged
merged 6 commits into from
Feb 13, 2024
Merged

Support the FastAPI app being mounted. #1174

merged 6 commits into from
Feb 13, 2024

Conversation

nsthorat
Copy link
Contributor

Fixes #1170

@nsthorat nsthorat requested review from dsmilkov and brilee February 13, 2024 23:34
@databricks databricks deleted a comment from review-notebook-app bot Feb 13, 2024
@nsthorat nsthorat merged commit bef587c into main Feb 13, 2024
4 checks passed
@nsthorat nsthorat deleted the nik-fastapi branch February 13, 2024 23:45

curl --fail --silent "http://localhost:$PORT/lilac_sub/api/v1/tasks/"

curl --fail --silent "http://localhost:$PORT/lilac_sub/"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue we're seeing with mounting lilac is the infinite redirects... and this test isn't quite catching it right now. Changing to this would show the failure:

curl --fail --silent "http://localhost:$PORT/lilac_sub/" -L --max-redirs 0

and if you remove --silent show something like this:
Screenshot 2024-02-14 at 10 50 44 AM

Interesting that the api and docs work totally fine :)

@nsthorat
Copy link
Contributor Author

I haven't yet released this! Did you try checking out from head?

I fixed the infinite redirect, but good point I will fix the unit test :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mount Lilac in existing FastAPI App
3 participants