Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

401 unauthorized response from server - username and psswd correct #73

Closed
ferguskeatinge opened this issue Oct 27, 2022 · 2 comments
Closed

Comments

@ferguskeatinge
Copy link

I think there may be an issue with authentication and set_smap_credentials - its giving me a 401 error even though my username and password are correct and are correctly written within the sys.env().

https://n5eil01u.ecs.nsidc.org/ requires earth data login and i now believe they require a token in the Bearer header as i was able to successful download an SMAP .h5 using GET(link, add_headers(Authorization = paste("Bearer", key, sep = " ")), write_disk(save_link))

thoughts?

@ferguskeatinge
Copy link
Author

find_SMAP and download_SMAP are now also failing with incorrect authorization 401 errors

@mbjoseph
Copy link
Member

mbjoseph commented Mar 6, 2023

That's strange. I am not able to reproduce this, but am able to access data (locally and on CI) using set_smap_credentials().

@mbjoseph mbjoseph closed this as completed Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants