From 94c782ef23ef9b3e259f92df695c28ada9cfb7b3 Mon Sep 17 00:00:00 2001 From: asepharyana Date: Sun, 30 Aug 2026 15:18:41 +0700 Subject: [PATCH] fix(runtime): revert Bun 1.4.0 -> 1.3.14 to fix Telegram sendDocument socket-close MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bun 1.4.0 (upgraded 0deb607) breaks Telegraf 4.15 sendDocument with 'The socket connection was closed unexpectedly' — reproduced with the same libraries: Telegraf 4.15.0 on Bun 1.4.0 fails exactly like prod, on Bun 1.3.14 it returns a proper HTTP response. All uploads 500 since the upgrade deployed (Aug 29 11:06). Pin flake nix override + CI bun-version to 1.3.14. --- .github/workflows/deploy.yml | 2 +- flake.nix | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1afbb90..dd4d765 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,7 +29,7 @@ jobs: - uses: oven-sh/setup-bun@v2 with: - bun-version: "1.4.0" + bun-version: "1.3.14" - name: Install deps run: bun install --frozen-lockfile diff --git a/flake.nix b/flake.nix index f2a0bbf..5ceae04 100644 --- a/flake.nix +++ b/flake.nix @@ -14,10 +14,10 @@ overlays = [ (self: super: { bun = super.bun.overrideAttrs (old: rec { - version = "1.4.0"; + version = "1.3.14"; src = super.fetchzip { - url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-linux-x64.zip"; - sha256 = "sha256:Poy0vf7yJ/hzk33QiQj5gnshI5Q7dfbaMD7xgwiyDKw="; + url = "https://github.com/oven-sh/bun/releases/download/bun-v1.3.14/bun-linux-x64.zip"; + sha256 = "sha256:189kasncnfpq6q37q3w80dv2a92w79w20x2x6hf1fbkir5gyvzlb"; }; }); })