Skip to content

chore(github): convert graphql_rate_limit errors into a different error than platform-unknown-error #44243

Description

@jamietanna

Via #44190

Trace logs for the platform-unknown-error case:

{"type":"RATE_LIMIT","code":"graphql_rate_limit","message":"API rate limit already exceeded for installation ID <redacted>"}

ERROR: Repository has unknown error  "platform-unknown-error"
    at getPlatformConfig (lib/workers/repository/init/apis.ts:96)
    at initRepo (lib/modules/platform/github/index.ts:575)

The getAppDetails / "Authentication failure" case shows the same graphql_rate_limit response on the viewer query.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Priority

    None yet

    Datasource

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions