rstudio / rscloud

Managing RStudio Cloud spaces with R
https://rstudio.github.io/rscloud
Other
22 stars 11 forks source link

Receiving Unauthorized (HTTP 401) Error despite correctly set credentials in .Renviron #48

Closed larnsce closed 3 years ago

larnsce commented 3 years ago

I follow the instructions to set RSCLOUD_CLIENT_ID and RSCLOUD_CLIENT_SECRET using usethis::edit_r_environ(). I have reset both records twice to but still receive the following error:

library(rscloud)

rscloud_space_list()
#> Error in request_token(): Unauthorized (HTTP 401). Failed to get an access token. Confirm that the environment variables
#>     `RSCLOUD_CLIENT_ID` and `RSCLOUD_CLIENT_SECRET` are set correctly.

Created on 2021-10-18 by the reprex package (v2.0.0)

Can you help me identify the next steps to solve this problem?

malcolmbarrett commented 3 years ago

I had this same problem, and generating new tokens worked for me 🤷‍♂️

larnsce commented 3 years ago

I just tried it again and it worked. Thanks!