-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
IIssuesLabelClient.RemoveFromIssue started returning "Error parsing JSON" #1865
Comments
Hi @MylioBill I haven't had a chance to attempt to repro this myself yet as I've been on mobile only. Given there's been no updates I'd guess this is an upstream github API change - the question is whether it's intentional or not. You said removing existing labels fails but adding labels works. Does adding a label and then trying to remove it, result in the same behaviour? Out of interest, do these labels in question have emojis in them, or the description field set at all? |
Adding a label, then removing it results in the exception. No emojis or descriptions in the labels that have the issue. |
Stack info in case it's useful
|
Cool, I found out what the problem is here. Turns out we were accidentally passing a string preview header into the octokit.net/Octokit/Http/IApiConnection.cs Line 329 in 74dc51a
I will put a fix in the next build but in the meantime you could probably use the |
Using IssueUpdate sidesteps the issue. Thanks! |
NuGet package v0.31.0
I have code that uses IIssuesLabelClient.RemoveFromIssue(string owner, string name, int number, string labelName)
Everything has been working fine until a couple days ago, when this method started throwing Bad Request 400: Error Parsing JSON API exceptions. This happens on any issue when removing any existing label. Adding labels works fine.
The text was updated successfully, but these errors were encountered: