eodms-sgdot / eodms-cli

The EODMS CLI Python script is used to search, order and download imagery from the Earth Observation Data Management System using the REST API service.
Other
28 stars 7 forks source link

HTTP Error: 401 Client Error: 401 for url: https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/collections; attempting to connect again #12

Closed willmacs closed 2 years ago

willmacs commented 2 years ago

ISSUE

Listing collections errors out

CAUSE

New version of underlying WES product changed this.

SOLUTION

Add HTTP AUTH to this call.

JUSTIFICATION

While the vendor could restore this not require AUTH, a logged in user intending to download ought to be able to HTTP AUTH to get logged-in list of collections (i.e. more data), not collections available to guest users

mneige commented 2 years ago

I got the same issue, waiting for a resolution

mneige commented 2 years ago

The error persists

willmacs commented 2 years ago

run "pip install -r requirements.txt" in the orderdownload folder. The error is now fixed in the api package not this client package.

mneige commented 2 years ago

I already did

keballantyne commented 2 years ago

Remove your username and password from the config.ini file, run the script and enter your EODMS credentials when prompted.

mneige commented 2 years ago

Hi Kevin, I did it but still got the same error

willmacs commented 2 years ago

Provide your logs to eodms-sgdot@nrcan-rncan.gc.ca

keballantyne commented 2 years ago

Run "pip install py-eodms-rapi==1.3.0" to get the latest Python package