Skip to content

Unable to load schema from 'https://raw.githubusercontent.com/compose-spec/compose-go/master/schema/compose-spec.json': 429: Too Many Requests #1139

@dlight

Description

@dlight

Describe the bug

I am editing a docker compose file (compose.yaml) and, after a couple of hours, I get hit with this error.

I am using Zed Preview 0.210.0 and it appears to have yaml support builtin using yaml-language-server

Here why I think this is a problem with the LSP server: the LSP should make this request only once, at the very first time I opened this file, and saved this schema in a cache (or better yet, ship with common schemas builtin). It had no business downloading a schema hours after I opened Zed.

I don't think this is a Zed problem but I reported it there zed-industries/zed#1098

Expected Behavior

I think this schema should be downloaded only once, and specially not very frequently, to avoid triggering anti-abuse mechanisms

Current Behavior

It appears it is downloading the schema hours after a session began; perhaps it downloaded many times in a loop, which is why Github responded with "429: Too Many Requests"

Steps to Reproduce

  1. Open compose.yaml in Zed (or another editor)
  2. Wait until it fails with too many requests

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions