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

RISE Changed some of their API so the mapping is missing keys #8

Open
C-Loftus opened this issue Feb 11, 2025 · 0 comments
Open

RISE Changed some of their API so the mapping is missing keys #8

C-Loftus opened this issue Feb 11, 2025 · 0 comments

Comments

@C-Loftus
Copy link
Member

KeyError
KeyError: 'catalogItems'
Traceback (most recent call last)
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1536, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1514, in wsgi_app
response = self.handle_exception(e)
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1511, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 919, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
File "/pygeoapi/pygeoapi/flask_app.py", line 505, in get_collection_edr_query
return execute_from_flask(
File "/pygeoapi/pygeoapi/flask_app.py", line 148, in execute_from_flask
headers, status, content = api_function(actual_api, api_request, *args)
File "/pygeoapi/pygeoapi/api/environmental_data_retrieval.py", line 377, in get_collection_edr_query
data = p.query(**query_args)
File "/pygeoapi/pygeoapi/provider/base_edr.py", line 107, in query
return getattr(self, kwargs.get('query_type'))(**kwargs)
File "/pygeoapi/rise/rise_edr.py", line 116, in locations
return CovJSONBuilder(self.cache).render(response, datetime_)
File "/pygeoapi/rise/covjson.py", line 262, in render
response_with_data = self.get_location_response_with_results(
File "/pygeoapi/rise/covjson.py", line 186, in get_location_response_with_results
location["relationships"]["catalogItems"]["data"]
KeyError: 'catalogItems'
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.
You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:
dump() shows all variables in the frame
dump(obj) dumps all that's known about the object
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

No branches or pull requests

1 participant