You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running into an error with the updated approach to authenticating sb for code dev in R.
I am following to approach outlined here.
After successfully entering into sciencebase.gov with bisonconnect and getting access to the API token when I run initialize_sciencebase_session, I copy and enter the token into the popup in R for the token string but I get the following JSON parsing error.
> initialize_sciencebase_session(user)
A browser will open https://sciencebase.usgs.gov/manager/
Log in and copy a token from the 'User' menu in the upper right.
Paste the token in the dialogue box that opens.
Error : parse error: premature EOF
{
(right here) ------^
[1] FALSE
The error points to the fact that it doesn't like that the JSON token is multi-string. And, indeed, when I go in and manually fix the json token code so that it is not multi-line : I ensure the first { is right before "access_token" without a space inbetween and also remove the new line and the extra spaces before "refresh_token".
I know updated have been happening throughout, so I've re-installed sbtools (and tested with teh dev version) and this same error occurs.
Would like to avoid having the manually edit the token string in text editor before entering in to authenticate sb.
The text was updated successfully, but these errors were encountered:
One of the sciencebase team members just switched it to a single line. You may need to force refresh the manager where you get the token to get it to work.
I am running into an error with the updated approach to authenticating sb for code dev in R.
I am following to approach outlined here.
After successfully entering into sciencebase.gov with bisonconnect and getting access to the API token when I run
initialize_sciencebase_session
, I copy and enter the token into the popup in R for the token string but I get the following JSON parsing error.The error points to the fact that it doesn't like that the JSON token is multi-string. And, indeed, when I go in and manually fix the json token code so that it is not multi-line : I ensure the first
{
is right before "access_token" without a space inbetween and also remove the new line and the extra spaces before "refresh_token".I know updated have been happening throughout, so I've re-installed sbtools (and tested with teh dev version) and this same error occurs.
Would like to avoid having the manually edit the token string in text editor before entering in to authenticate sb.
The text was updated successfully, but these errors were encountered: