Skip to content

Code breaks on app startup when pagination extension is not included #403

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

Closed
geospatial-jeff opened this issue May 17, 2022 · 0 comments · Fixed by #444
Closed

Code breaks on app startup when pagination extension is not included #403

geospatial-jeff opened this issue May 17, 2022 · 0 comments · Fixed by #444

Comments

@geospatial-jeff
Copy link
Collaborator

  File "/app/./arturo/coverage_stac_api/module.py", line 12, in create_app
    stac_api = StacApi(
  File "<attrs generated init stac_fastapi.api.app.StacApi>", line 32, in __init__
    self.__attrs_post_init__()
  File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/stac_fastapi/api/app.py", line 362, in __attrs_post_init__
    self.register_core()
  File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/stac_fastapi/api/app.py", line 315, in register_core
    self.register_get_item_collection()
  File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/stac_fastapi/api/app.py", line 270, in register_get_item_collection
    get_pagination_model = self.get_extension(self.pagination_extension).GET
AttributeError: 'NoneType' object has no attribute 'GET'
@geospatial-jeff geospatial-jeff changed the title Code breaks on app startup when pagination extension is missing Code breaks on app startup when pagination extension is not included May 17, 2022
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 a pull request may close this issue.

1 participant