Skip to content

/collections redirecting to bad URL #288

@TWDBrob

Description

@TWDBrob

I set up stac-fastapi-pgstac using the Joplin data and when I go to the /collections endpoint, I get a 404. Note that /collections/joplin/items works fine.

From the docker logs:

INFO: 172.18.0.1:39068 - "GET /api/v1/pgstac/collections/joplin/items HTTP/1.1" 200 OK <-- trying to get all items works fine
INFO: 172.18.0.1:55638 - "GET /api/v1/pgstac/collections/ HTTP/1.1" 307 Temporary Redirect
INFO: 172.18.0.1:55638 - "GET /api/v1/pgstac/api/v1/pgstac/collections HTTP/1.1" 404 Not Found <-- /collections goes to this messed up URL

I have been trying to figure out where the request enters the code (it doesn't reach CoreCrudClient.all_collections), but I've been unsuccessful so far.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions