Chaosthebot / Chaos

A social coding experiment that updates its own code democratically.

Home Page:http://chaosthebot.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub API: 422 unprocessable entity

PlasmaPower opened this issue · comments

422 Client Error: Unprocessable Entity for url: https://api.github.com/repos/chaosbot/Chaos/labels

http://chaosthebot.com:8081/chaos-stderr.log

We had this issue with status updates, but now it's returned in the form of label creation. Ideas?

I believe that's the error it returns that when the label already exists. Let me check on that, though.

Yea, we should log the response body if there's an error. It should say there. My guess is that the labels already exist. Reference: https://developer.github.com/v3/#client-errors

I hadn't seen the client errors page before, thanks. I'd still prefer to not log a bunch of errors, and instead list the labels once, then add missing ones. I implemented a similar solution for the blocklist PR.

#451 (comment)

I am going to rework this PR, with the @hongaar ideas #451 (comment)

commented

Will be fixed by #486.