Skip to content

Improve AMDA handling #228

@Beforerr

Description

@Beforerr

US-based users sometimes experience poor connectivity to AMDA. When this happens, speasy would error, which can be disruptive.

I'm just wondering if we could improve to just log a warning instead. This would provide a smoother user experience and reduce confusion when AMDA is temporarily unreachable.

InitError: Python: TypeError: argument of type 'NoneType' is not iterable
Python stacktrace:
 [1] _send_indirect_request
   @ speasy.core.impex.client ~/src/Speasy.jl/.CondaPkg/.pixi/envs/default/lib/python3.13/site-packages/speasy/core/impex/client.py:154
 [2] get_obs_data_tree
   @ speasy.core.impex.client ~/src/Speasy.jl/.CondaPkg/.pixi/envs/default/lib/python3.13/site-packages/speasy/core/impex/client.py:85
 [3] _get_obs_data_tree
   @ speasy.core.impex ~/src/Speasy.jl/.CondaPkg/.pixi/envs/default/lib/python3.13/site-packages/speasy/core/impex/__init__.py:944
 [4] _get_obs_data_tree
   @ speasy.data_providers.amda.ws ~/src/Speasy.jl/.CondaPkg/.pixi/envs/default/lib/python3.13/site-packages/speasy/data_providers/amda/ws.py:354
 [5] wrapped
   @ speasy.core.cache._function_cache ~/src/Speasy.jl/.CondaPkg/.pixi/envs/default/lib/python3.13/site-packages/speasy/core/cache/_function_cache.py:52
 [6] build_inventory
   @ speasy.core.impex ~/src/Speasy.jl/.CondaPkg/.pixi/envs/default/lib/python3.13/site-packages/speasy/core/impex/__init__.py:104
 [7] _inventory
   @ speasy.core.dataprovider ~/src/Speasy.jl/.CondaPkg/.pixi/envs/default/lib/python3.13/site-packages/speasy/core/dataprovider.py:55
 [8] wrapped
   @ speasy.core.proxy ~/src/Speasy.jl/.CondaPkg/.pixi/envs/default/lib/python3.13/site-packages/speasy/core/proxy/__init__.py:156
 [9] update_inventory
   @ speasy.core.dataprovider ~/src/Speasy.jl/.CondaPkg/.pixi/envs/default/lib/python3.13/site-packages/speasy/core/dataprovider.py:65
 [10] __init__
   @ speasy.core.dataprovider ~/src/Speasy.jl/.CondaPkg/.pixi/envs/default/lib/python3.13/site-packages/speasy/core/dataprovider.py:50
 [11] __init__
   @ speasy.core.impex ~/src/Speasy.jl/.CondaPkg/.pixi/envs/default/lib/python3.13/site-packages/speasy/core/impex/__init__.py:63
 [12] __init__
   @ speasy.data_providers.amda.ws ~/src/Speasy.jl/.CondaPkg/.pixi/envs/default/lib/python3.13/site-packages/speasy/data_providers/amda/ws.py:124
 [13] init_amda
   @ ~/src/Speasy.jl/.CondaPkg/.pixi/envs/default/lib/python3.13/site-packages/speasy/core/requests_scheduling/request_dispatch.py:39
 [14] init_providers
   @ ~/src/Speasy.jl/.CondaPkg/.pixi/envs/default/lib/python3.13/site-packages/speasy/core/requests_scheduling/request_dispatch.py:91
 [15] <module>
   @ ~/src/Speasy.jl/.CondaPkg/.pixi/envs/default/lib/python3.13/site-packages/speasy/core/requests_scheduling/request_dispatch.py:99
 [16] <module>
   @ ~/src/Speasy.jl/.CondaPkg/.pixi/envs/default/lib/python3.13/site-packages/speasy/core/requests_scheduling/__init__.py:2
 [17] <module>
   @ ~/src/Speasy.jl/.CondaPkg/.pixi/envs/default/lib/python3.13/site-packages/speasy/__init__.py:21

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions