yaml-language-server icon indicating copy to clipboard operation
yaml-language-server copied to clipboard

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

Open dlight opened this issue 2 months ago • 0 comments

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
  • [x] Linux
  • [ ] other (please specify)

dlight avatar Oct 24 '25 08:10 dlight