Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Labels are not read properly thus not included in the final rewards #934

Open
gentlementlegen opened this issue Jun 5, 2024 · 0 comments

Comments

@gentlementlegen
Copy link
Member

gentlementlegen commented Jun 5, 2024

This depends on #927

The bot currently crashes when reading labels which results in error messages.

Example:
ubiquity-os-marketplace/command-start-stop#2 (comment)

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"
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant