Skip to content

Search is broken without the fields extension #25

@gadomski

Description

@gadomski

To reproduce

In one shell in the stac-fastapi root:

docker-compose run --service-ports --rm database

In a second shell:

ENABLED_EXTENSIONS=query python -m stac_fastapi.pgstac.app

Then:

$ curl http://localhost:8000/search
{"code":"AttributeError","description":"'SearchPostRequest' object has no attribute 'fields'"}%  

Expected behavior

stac-fastapi with the pgstac backend should allow search if the fields extension is not enabled. This does not affect the sqlalchemy backend, which appears to work w/o the fields extension.

Related issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions