Skip to content

asf_search.exceptions.ASFAuthenticationError: Username or password is incorrect with asf_search < 10.1.0 #129

@asjohnston-asf

Description

@asjohnston-asf

Sometime between 2025-09-22 and 2025-10-01 I began seeing this error when running the back projection workflow. The underlying error was corrected in https://github.com/asfadmin/Discovery-asf_search/releases/tag/v10.0.5

$ docker run -it -e EARTHDATA_USERNAME=asjohnston -e EARTHDATA_PASSWORD=*** hyp3-srg S1A_IW_RAW__0SDV_20240821T232941_20240821T233019_055317_06BEB9_E7F8 --bounds -77.968 0.787 -77.908 0.847
Downloading data...
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/opt/conda/envs/hyp3-srg/lib/python3.13/site-packages/hyp3_srg/__main__.py", line 29, in <module>
    main()
    ~~~~^^
  File "/opt/conda/envs/hyp3-srg/lib/python3.13/site-packages/hyp3_srg/__main__.py", line 25, in main
    sys.exit(process_entry_point.load()())
             ~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/opt/conda/envs/hyp3-srg/lib/python3.13/site-packages/hyp3_srg/back_projection.py", line 195, in main
    back_project(**args.__dict__)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/hyp3-srg/lib/python3.13/site-packages/hyp3_srg/back_projection.py", line 124, in back_project
    granule_path, granule_bbox = utils.download_raw_granule(granule, work_dir, unzip=True)
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/hyp3-srg/lib/python3.13/site-packages/hyp3_srg/utils.py", line 132, in download_raw_granule
    session = asf_search.ASFSession().auth_with_creds(username, password)
  File "/opt/conda/envs/hyp3-srg/lib/python3.13/site-packages/asf_search/ASFSession.py", line 121, in auth_with_creds
    self._legacy_creds_auth()
    ~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/opt/conda/envs/hyp3-srg/lib/python3.13/site-packages/asf_search/ASFSession.py", line 176, in _legacy_creds_auth
    raise ASFAuthenticationError('Username or password is incorrect')
asf_search.exceptions.ASFAuthenticationError: Username or password is incorrect

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions