Open gentlementlegen opened 1 month ago
This depends on https://github.com/ubiquity/ubiquibot/issues/927
The bot currently crashes when reading labels which results in error messages.
Example: https://github.com/ubiquibot/command-start-stop/issues/2#issuecomment-2146814649
Associated error:
{ "error": { "name": "HttpError", "status": 422, "request": { "url": "https://api.github.com/repos/ubiquibot/command-start-stop/labels", "body": "{\"name\":\"Priority: 1 (Normal)\",\"color\":\"ededed\"}", "method": "POST", "headers": { "accept": "application/vnd.github.v3+json", "user-agent": "probot/12.3.3 octokit-core.js/3.6.0 Node.js/20.13.1 (linux; x64)", "content-type": "application/json; charset=utf-8", "authorization": "token [REDACTED]" }, "request": { "retryCount": 1 } }, "response": { "url": "https://api.github.com/repos/ubiquibot/command-start-stop/labels", "data": { "errors": [ { "code": "already_exists", "field": "name", "resource": "Label" } ], "message": "Validation Failed", "documentation_url": "https://docs.github.com/rest/issues/labels#create-a-label" }, "status": 422, "headers": { "date": "Tue, 04 Jun 2024 07:32:17 GMT", "vary": "Accept-Encoding, Accept, X-Requested-With", "server": "GitHub.com", "content-type": "application/json; charset=utf-8", "content-length": "182", "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "x-frame-options": "deny", "x-ratelimit-used": "52", "x-xss-protection": "0", "x-ratelimit-limit": "5000", "x-ratelimit-reset": "1717489613", "x-github-media-type": "github.v3; format=json", "x-github-request-id": "A6B6:2FB1B7:1FA52EC:3505A9D:665EC300", "x-ratelimit-resource": "core", "x-ratelimit-remaining": "4948", "x-content-type-options": "nosniff", "content-security-policy": "default-src 'none'", "strict-transport-security": "max-age=31536000; includeSubdomains; preload", "access-control-allow-origin": "*", "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "x-accepted-github-permissions": "issues=write; pull_requests=write", "x-github-api-version-selected": "2022-11-28" } } }, "caller": "renderCatchAll", "revision": null, "handlerType": { "type": "pre", "actions": [ null ] }, "activeHandler": "syncPriceLabelsToConfig" }
This depends on https://github.com/ubiquity/ubiquibot/issues/927
The bot currently crashes when reading labels which results in error messages.
Example: https://github.com/ubiquibot/command-start-stop/issues/2#issuecomment-2146814649
Associated error: