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

Fix fastapi request #171

Merged
merged 9 commits into from
Jan 24, 2024
Merged

Fix fastapi request #171

merged 9 commits into from
Jan 24, 2024

Conversation

mcucchi9
Copy link
Collaborator

@mcucchi9 mcucchi9 commented Jan 23, 2024

Rationale of the changes to the environment.yml:

  1. starlette-exporter can be installed from conda
  2. uvicorn > 0.25.0 makes the application unreachable (all endpoints return a 404)
  3. fastapi > 0.108.0 (or related starlette dependency upgrade) unexpectedly changes the behaviour of fastapi.Request.url, causing the links to e.g. self, next and prev not to be built properly (missing /api/retrieve/v1 in tue URLs) -> since this logic is in ogc-api-processes-fastapi package, this should probably be moved there

UPDATE 24-01-2024

As per points 2. and 3., issues are solved also if BOTH fastapi and uvicorn are at their (current) latest versions (see encode/uvicorn#2213 and fastapi/fastapi#10978)

-> environment.yml is changed accordingly

@mcucchi9 mcucchi9 self-assigned this Jan 23, 2024
@mcucchi9 mcucchi9 merged commit 49bada1 into main Jan 24, 2024
8 of 9 checks passed
@mcucchi9 mcucchi9 deleted the COPDS-1474-fix-fastapi-request branch January 24, 2024 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant