Skip to content
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 when adding a label to an issue #1035

Open
matthieu-rolland opened this issue Oct 28, 2021 · 1 comment
Open

Error when adding a label to an issue #1035

matthieu-rolland opened this issue Oct 28, 2021 · 1 comment

Comments

@matthieu-rolland
Copy link

matthieu-rolland commented Oct 28, 2021

Hello,

I have an error when I try to add a label on an issue, following this documentation.

Here is how I do it:

$labels = $client->api('issue')->labels()->add('matthieu-rolland', 'test-issuebot', 51, 'Fixed');

And here is what I get:

PHP Fatal error: Uncaught Github\Exception\RuntimeException: Invalid request. No subschema in "anyOf" matched.

When I debug I see that the response I get is actually:

ERROR 422 Unprocessable Entity

I didn't manage to identify the cause of this problem...

Some more information:

  • It does work when I call github's API directly via postman with the same github token
  • While debugging I saw that the URI and HTTP methods seem correct (but maybe not until the end?)
  • I'm not sure about the request's body
  • VERSION 2.12.1
@ash-lund
Copy link

ash-lund commented Oct 6, 2022

I know this says version 2.12.1, but it works fine in 3.8.0, so has this already been fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants