Skip to content

Unexpected error when GitHub returns 422 #229

@jeroen

Description

@jeroen

I am seeing this error

Error in do.call(rbind, errors) : second argument must be a list
Calls: <Anonymous> ... gh_make_request -> gh_error -> as.data.frame -> do.call

It originates here:

gh/R/gh.R

Line 359 in e9194ae

errors <- as.data.frame(do.call(rbind, errors))

For this response:

Browse[1]> res
$message
[1] "Validation Failed"

$errors
[1] "Validation failed: This SHA and context has reached the maximum number of statuses."

$documentation_url
[1] "https://docs.github.com/rest/commits/statuses#create-a-commit-status"

$status
[1] "422"

So the problem is that errors is just a string and not a data frame?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions