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

Fix: Graphql error: Cannot query field 'meta' on type 'SourceSolutionUnion #79

Open
chrisbc opened this issue Jun 24, 2024 · 0 comments
Labels
LIB for filtering nzshm-model for filtering

Comments

@chrisbc
Copy link
Member

chrisbc commented Jun 24, 2024

DEBUG:nshm_toshi_client.toshi_client_base:variable_values: {'id': 'RmlsZToxMjEwMzM='}
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/app/nzshm-runzi/runzi/execute/openquake/oq_hazard_task.py", line 348, in <module>
    task.run(**config)
  File "/app/nzshm-runzi/runzi/execute/openquake/oq_hazard_task.py", line 204, in run
    sources_filepath = adapter.write_config(cache_folder, sources_folder)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/openquake/lib/python3.11/site-packages/nzshm_model/psha_adapter/openquake/simple_nrml.py", line 221, in write_config
    source_map = source_map or self.unpack_resources(cache_folder, target_folder)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/openquake/lib/python3.11/site-packages/nzshm_model/psha_adapter/openquake/simple_nrml.py", line 237, in unpack_resources
    for file_id, filepath, uncertainty_model in self.fetch_resources(cache_folder):
  File "/opt/openquake/lib/python3.11/site-packages/nzshm_model/psha_adapter/openquake/simple_nrml.py", line 272, in fetch_resources
    filepath = fetch_toshi_source(um.toshi_nrml_id, destination)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/openquake/lib/python3.11/site-packages/nzshm_model/psha_adapter/openquake/simple_nrml.py", line 28, in fetch_toshi_source
    file_detail = api.get_source(file_id)
@chrisbc chrisbc changed the title Fix: Grphql error: Cannot query field 'meta' on type 'SourceSolutionUnion Fix: Graphql error: Cannot query field 'meta' on type 'SourceSolutionUnion Jun 24, 2024
@chrisbc chrisbc added nzshm-model for filtering LIB for filtering labels Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LIB for filtering nzshm-model for filtering
Projects
None yet
Development

No branches or pull requests

1 participant