Skip to content

Allow GitHub PAT Configuration for Kotlin Language Server Downloads to Avoid Rate Limit Errors #170

Open
@noonowl

Description

@noonowl

When launching VSCode, the extension fetches releases from GitHub automatically, but this sometimes results in a 403 rate limit error due to unauthenticated requests to the GitHub releases API.

I suggest adding a configuration page in the extension where users can input their GitHub Personal Access Token (PAT). The extension could then include this token in the request headers when fetching releases, which would significantly increase the rate limit and help avoid these errors.

Below is an example error message encountered:

Could not update/download Kotlin Language Server: Error: Could not fetch from GitHub releases API: StatusCodeError: 403 - "{\"message\":\"API rate limit exceeded for 21.44.11.99. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)\",\"documentation_url\":\"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting\"}\n"

Could you please consider implementing this feature? Thank you for your time and effort!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions