GIS4WRF / gis4wrf

QGIS toolkit 🧰 for pre- and post-processing 🔨, visualizing 🔍, and running simulations 💻 in the Weather Research and Forecasting (WRF) model 🌀
https://gis4wrf.github.io
MIT License
159 stars 36 forks source link

requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url #194

Closed crlsandres closed 3 years ago

crlsandres commented 3 years ago

Hi,

I'm new in QGIS4WRF, I'm having an error downloading Met data sets, i configured mi username and password (see picture)

image

And I'm getting this error


2020-10-10T22:28:49 WARNING Traceback (most recent call last): File "C:/Users/PERSONAL/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gis4wrf\plugin\ui\widget_met.py", line 129, in on_dataset_changed self.products = get_met_products(dataset_name, auth) File "C:/Users/PERSONAL/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gis4wrf\core\downloaders\met.py", line 28, in get_met_products response.raise_for_status() File "C:\PROGRA~1\QGIS3~1.10\apps\Python37\lib\site-packages\requests\models.py", line 941, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://rda.ucar.edu/apps/metadata/ds083.3

I confirme my username and password in https://rda.ucar.edu/ and i was able to login, so credentials are ok, I don't know what i'm doing wrong, could you pelease help me?

System Information (please complete the following information):

image

dmey commented 3 years ago

Can you try to enter https://rda.ucar.edu/apps/metadata/ds083.3 from your browser and authenticate? What happens?

crlsandres commented 3 years ago

return this:

image

dmey commented 3 years ago

Thanks -- try from a private window to avoid using cached logins. Then when it prompts for username and password enter your details. If these work from the browser, I would suggest rechecking that you have entered the correct username and password in GIS4WRF -- there is nothing really special about how we handle authenticate for RDA and the error you reported is about authentication and not connection so I suspect that to be the issue. I have just tried at my end my could not find issues with it although I was able to reproduce the same error by entering the wrong password. Let me know how it goes with this and if it's still not working we can investigate further.

crlsandres commented 3 years ago

It does not let me loggin in private mode, I changed my password and even with that does not let me loggin in private mode, and also does not let me loggin with GIS4WRF, there is something wired with my account, I will try to create a new one.

crlsandres commented 3 years ago

Hi, there was an issue accepting terms of use in my account, connection with ucar is working fine now.

Thanks a lot.

dmey commented 3 years ago

Great! 👍