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
Using the process from #201, I generated auto-refreshing "long term tokens". The process runs smoothly on unix machines; however, when working on windows machines the auto-refresh hangs and eventually gives an error. The token is refreshed during the process but for some reason the function errors out.
Auto-refreshing stale OAuth token.
Error in .rs.parsePackageDependencies(contents, extension) :
object 'partition_yaml_front_matter' not found
Error in .rs.parsePackageDependencies(contents, extension) :
object 'partition_yaml_front_matter' not found
Error in .rs.parsePackageDependencies(contents, extension) :
object 'partition_yaml_front_matter' not found
Expected Behaviour
Expect the token refresh process to occur without generating an error
Actual Behaviour
Token is refreshed but function returns an error.
Account Type
Dropbox Business Advanced
Session Info
Replace the output below (inside the backticks) with output from devtools::session_info() (or sessionInfo() if you don't have devtools installed)
A little hacky but downloading a file first seems to resolve the issues with uploads not properly refreshing the token.
refresh_db_token<-function(path = "auth/db_token.rds"){
rdrop2::drop_auth(rdstoken = path, cache = FALSE)
# download a small file to get the token to refresh properly. Allows upload functions to work.
rdrop2::drop_download("tinyFile.csv",local_path = here("Dropbox_data"), overwrite = TRUE)
file.remove(here("Dropbox_data/tinyFile.csv"))
}
Using the process from #201, I generated auto-refreshing "long term tokens". The process runs smoothly on unix machines; however, when working on windows machines the auto-refresh hangs and eventually gives an error. The token is refreshed during the process but for some reason the function errors out.
Running:
Returns:
Expected Behaviour
Expect the token refresh process to occur without generating an error
Actual Behaviour
Token is refreshed but function returns an error.
Account Type
Dropbox Business Advanced
Session Info
Replace the output below (inside the backticks) with output from
devtools::session_info()
(orsessionInfo()
if you don't havedevtools
installed)The text was updated successfully, but these errors were encountered: