-
Notifications
You must be signed in to change notification settings - Fork 405
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
[BUGFIX] Redirect slash when defining ARGILLA_BASE_URL
#5796
Conversation
@@ -171,7 +171,7 @@ def create_server_app() -> FastAPI: | |||
# This if-else clause is needed to simplify the test dependency setup. Otherwise, we cannot override dependencies | |||
# easily. We can review this once we have separate fastapi application for the api and the webapp. | |||
if settings.base_url and settings.base_url != "/": | |||
_app = FastAPI(docs_url=None, redoc_url=None, openapi_url=None, redirect_slashes=False) | |||
_app = FastAPI(docs_url=None, redoc_url=None, openapi_url=None, redirect_slashes=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! I think this has been the culprit for some of the HF Space errors.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #5796 +/- ##
===========================================
- Coverage 91.97% 91.94% -0.04%
===========================================
Files 161 161
Lines 6928 6927 -1
===========================================
- Hits 6372 6369 -3
- Misses 556 558 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Nice! This should help out @aleksvercau |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Closes #5792
Type of change
How Has This Been Tested
Checklist