mattroumaya / surveymonkey

Access your SurveyMonkey data directly from R!
https://mattroumaya.github.io/surveymonkey/
Other
42 stars 10 forks source link

Issue a better warning message when the oauth token is wrong #60

Closed sfirke closed 3 years ago

sfirke commented 4 years ago

This should make the httr request fail, and the error message should indicate that. But right now it's an unrelated error message:

> browse_surveys(oauth_token = "not-the-right-token")
You have  requests left today before you hit the limit
Error in if (as.numeric(out$headers$`x-ratelimit-app-global-day-remaining`)%%20 ==  : 
  argument is of length zero
sfirke commented 3 years ago

closed by #72