Skip to content

stacktape/bun-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bun HTTPS Hanging Bug Reproduction

Minimal reproduction for a bug where HTTPS requests hang indefinitely after ~1-10 minutes of continuous requests in Bun >= 1.3.0.

The Bug

When making continuous HTTPS requests (e.g., AWS SDK v3 calls), after approximately 1-2 minutes some requests start hanging indefinitely - they never receive a response.

Affected versions:

  • Bun >= 1.3.0 (broken)
  • Bun <= 1.2.23 (working)
  • Node.js (working)

Prerequisites

  • AWS credentials configured (~/.aws/credentials or environment variables)
  • Bun >= 1.3.0 installed

Running the reproduction

# Install dependencies
bun install

# Run with Bun (will hang after ~1-2 minutes)
bun run start

# Run with Node.js (works correctly)
bun run start:node

Expected behavior

All requests complete (success or error).

Actual behavior

After ~1-2 minutes, some requests hang indefinitely:

[2026-01-14T10:47:36.476Z] #470 START: CloudFormation:ListStacks
[2026-01-14T10:48:06.474Z] #470 HANGING: CloudFormation:ListStacks (29998ms) - REQUEST NEVER COMPLETED!

Workaround

No known workaround. Downgrade to Bun <= 1.2.23 or use Node.js.

Note: Setting keepAlive: false does NOT prevent the issue.

Using different version of aws-sdk didn't work either.

Possibly Related

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published