Skip to content

failed to download bzl #132

Open
Open

Description

@AAArthurLiu

Hello there!

As I understand, bazel-stack-vscode uses bzl to do its tasks. it downloads the tool from: https://get.bzl.io/linux_amd64/v1.5.3/bzl. But download failed with message:

ERROR: getaddrinfo ENOTFOUND get.bzl.io. Technical details: {"message":"getaddrinfo ENOTFOUND get.bzl.io","name":"Error","stack":"Error: getaddrinfo ENOTFOUND get.bzl.io\n\tat GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:122:26)","config":{"url":"https://get.bzl.io/linux_amd64/v1.5.3/bzl","method":"get","headers":{"Accept":"application/json, text/plain, */*","User-Agent":"axios/0.21.4"},"proxy":false,"transformRequest":[null],"transformResponse":[null],"timeout":5000,"responseType":"stream","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"cancelToken":{"promise":{}},"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false}},"code":"ENOTFOUND"}

The address cannot be accessed manually either. Maybe the origianl source is not available, is there a way I can manually solve this, like downloading from another available source?

Other info: my current extension version: 1.9.8

Activity

  1. AtillaAtes commented on Dec 1, 2025

    @AtillaAtes

    Hi,

    i have the same issue. Maybe try to download it from here: https://github.com/stackb/bzl

  2. AAArthurLiu commented on Dec 1, 2025

    @AAArthurLiu
    Author

    Hi,

    i have the same issue. Maybe try to download it from here: https://github.com/stackb/bzl

    Thank you! I have tried that before. But due to version mismatch, some commands will fail. So the extension still has some issues.

  3. AtillaAtes commented on Dec 1, 2025

    @AtillaAtes

    Yes i was testing this extension too but i think it is not maintained anymore. Last update was 2 years ago. It would be nice if the owner could give an answer to our problem.

  4. AAArthurLiu commented on Dec 1, 2025

    @AAArthurLiu
    Author

    Yes i was testing this extension too but i think it is not maintained anymore. Last update was 2 years ago. It would be nice if the owner could give an answer to our problem.

    Yep, or temporarily point to the source we can build ourselves.

  5. bd-tkoolen commented on Feb 17, 2026

    @bd-tkoolen

    A workaround I found is to locate the v1.5.3-bzl executable on a machine that downloaded it before the link went dead (for me, it was ~/.config/Code/User/globalStorage/stackbuild.bazel-stack-vscode/file-downloader-downloads/v1.5.3-bzl), copy that over to the machine that needs it, and then use the bsv.bzl.server.executable VS Code setting to point to that executable.

  6. mpearson commented on Feb 18, 2026

    @mpearson

    Ran into this issue, and it completely breaks the bazel-stack-vscode extension, even functionality that doesn't depend on bzl. I ended up disabling it with this setting:

    "bsv.bzl.server.enabled": false
    

    Not sure what bzl actually provides, but I'm able to run bazel targets by clicking again so I'm happy.

    Also, while trying to debug this, I got a hold of a v1.5.3-bzl binary from a coworker, and tried to put it in S3 so I could just update the bsv.bzl.downloadBaseUrl setting and spare the rest of my team from having to think about it. Unfortunately, that setting seems to be ignored, and it continued to fail on the https://get.bzl.io request. I then manually changed the binary path and that did work, although there were still some other errors with bzl which I didn't bother to investigate.

  7. AAArthurLiu commented on Feb 24, 2026

    @AAArthurLiu
    Author

    A workaround I found is to locate the v1.5.3-bzl executable on a machine that downloaded it before the link went dead (for me, it was ~/.config/Code/User/globalStorage/stackbuild.bazel-stack-vscode/file-downloader-downloads/v1.5.3-bzl), copy that over to the machine that needs it, and then use the bsv.bzl.server.executable VS Code setting to point to that executable.

    Could you kindly share that binary? I couldn't find it anywhere else.

  8. AAArthurLiu commented on Feb 24, 2026

    @AAArthurLiu
    Author

    Ran into this issue, and it completely breaks the bazel-stack-vscode extension, even functionality that doesn't depend on bzl. I ended up disabling it with this setting:

    "bsv.bzl.server.enabled": false
    

    Not sure what bzl actually provides, but I'm able to run bazel targets by clicking again so I'm happy.

    Also, while trying to debug this, I got a hold of a v1.5.3-bzl binary from a coworker, and tried to put it in S3 so I could just update the bsv.bzl.downloadBaseUrl setting and spare the rest of my team from having to think about it. Unfortunately, that setting seems to be ignored, and it continued to fail on the https://get.bzl.io request. I then manually changed the binary path and that did work, although there were still some other errors with bzl which I didn't bother to investigate.

    After setting "bsv.bzl.server.enabled": false, it still runs into bsv.lsp issues. When lsp is turned off, the build/run/test clicks of bazel targets are also gone. So I assume somehow they are also connected.

    Would you mind sharing the binary here? Many thanks!

  9. UebelAndre commented on Jun 17, 2026

    @UebelAndre

    @pcj howdy! would you be willing to open source the bzl binary and accept updates to the plugin to host from github?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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