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
All the links rendered by the application are the ones expected and they can be used to reach the various endpoints supported by the application. The only notable exception is inside the service-desc located under /stac/api, this endpoint is reachable but its content provides broken links since none of them include the expected root-path prefix (/stac in our specific case).
The omission of the root-path prefix makes all the potential interactions with the API available inside the api.html page with Try it out buttons unusable as it returns 404 errors.
Current and expected behavior
As discussed in #489, when STAC-fastapi is hosted behind a proxy and started with a command like the following:
All the links rendered by the application are the ones expected and they can be used to reach the various endpoints supported by the application. The only notable exception is inside the service-desc located under /stac/api, this endpoint is reachable but its content provides broken links since none of them include the expected root-path prefix (/stac in our specific case).
Current
Expected
The omission of the root-path prefix makes all the potential interactions with the API available inside the api.html page with Try it out buttons unusable as it returns 404 errors.
The issue can be worked around by creating a custom StacApi class as illustrated here https://github.com/microsoft/planetary-computer-apis/blob/main/pcstac/pcstac/api.py#L22-L26, but as running behind a proxy could be a common use case for many deployments, it might make sense to pull this feature directly into stac-fastapi.
The text was updated successfully, but these errors were encountered: