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.
I am going to rework this PR, with the @hongaar ideas #451 (comment)