-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error due to gh_rest_post() response returning raw data instead of character #611
Comments
Are you sure that your GitHub PAT is correct? |
I have regenerated a new token, added it via > rhub::rhub_doctor()
✔ Found R package at /Users/tyler/Desktop/R/rayvertex.
✔ Found git repository at /Users/tyler/Desktop/R/rayvertex.
✔ Found GitHub PAT.
✔ Found repository on GitHub at <https://github.com/tylermorganwall/rayvertex.git>.
✔ GitHub PAT has the right scopes.
✔ Found R-hub workflow in default branch, and it is active.
→ WOOT! You are ready to run rhub::rhub_check() on this package. After all of that, running this in my project for rayimage returns the following: > gh::gh_whoami()
{
"name": {},
"login": "tylermorganwall",
"html_url": "https://github.com/tylermorganwall",
"scopes": "gist, repo, user, workflow",
"token": "(correct token)"
}
> gitcreds::gitcreds_get()
<gitcreds>
protocol: https
host : github.com
username: PersonalAccessToken
password: <-- hidden -->
> rhub::rhub_doctor()
✔ Found R package at /Users/tyler/Desktop/R/rayimage.
✔ Found git repository at /Users/tyler/Desktop/R/rayimage.
✔ Found GitHub PAT.
Error in `resp$content$data`:
! $ operator is invalid for atomic vectors
Type .Last.error to see the more details. |
Is it a fine-grained or a classic token? |
Classic token. |
I have been trying to set up rhub on my package rayimage, but I was getting an odd error when calling both rhub_check() and rhub_doctor:
I used
trace()
to pinpoint the issue to theresp
variable:Specifically, the content was the following:
(in ASCII, this is "Cookies must be enabled to use GitHub.")
I'm not sure why
rhub_check()
andrhub_doctor()
is failing, but the functions should probably be fixed to parse this response and return the error in human readable form.sessionInfo:
The text was updated successfully, but these errors were encountered: