Skip to content

i.sentinel.download: fix authentication#1657

Open
landam wants to merge 2 commits intoOSGeo:grass8from
landam:fix_sentinel_auth_eodag3
Open

i.sentinel.download: fix authentication#1657
landam wants to merge 2 commits intoOSGeo:grass8from
landam:fix_sentinel_auth_eodag3

Conversation

@landam
Copy link
Copy Markdown
Member

@landam landam commented Mar 26, 2026

i.sentinel.download fails with

Traceback (most recent call last):
  File "/home/landamar/.grass8/addons/scripts/i.sentinel.download", line 535, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/landamar/.grass8/addons/scripts/i.sentinel.download", line 406, in main
    dag._plugins_manager.get_auth_plugin("cop_dataspace").authenticate()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/data/geodata/sentinel/venv/lib/python3.13/site-packages/eodag/plugins/manager.py", line 272, in get_auth_plugin
    matching_url = getattr(associated_plugin.config, "api_endpoint", None)
                           ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'config'

This pull request addresses the issue in accordance with the EODAG documentation. Tested with EODAG version 3.10.0.

How to reproduce

i.sentinel.download settings=sentinel.txt limit=1 output=/data/tmp/

@landam landam self-assigned this Mar 26, 2026
@landam landam added bug Something isn't working Python Related code is in Python labels Mar 26, 2026
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@landam landam requested review from neteler and ninsbl March 26, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Python Related code is in Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant