smapr
smapr copied to clipboard
401 unauthorized response from server - username and psswd correct
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?
find_SMAP and download_SMAP are now also failing with incorrect authorization 401 errors
That's strange. I am not able to reproduce this, but am able to access data (locally and on CI) using set_smap_credentials()
.