Skip to content

fix: switch how we do http requests to fix socket disconnect error#197

Merged
levibostian merged 1 commit intomainfrom
use-fetch
Feb 28, 2026
Merged

fix: switch how we do http requests to fix socket disconnect error#197
levibostian merged 1 commit intomainfrom
use-fetch

Conversation

@levibostian
Copy link
Copy Markdown
Owner

Related GitHub Issues

Problem

This keeps happening on decaf and cathy's CI...

🔄 Verifying that the new release was created by re-running the get-latest-release step... I will set the git committer config to the user provided values: name: github-actions[bot], email: 41898282+github-actions[bot]@users.noreply.github.com
 $> deno run --allow-all --quiet jsr:@levibostian/decaf-script-github-releases get
Latest git tag on the current branch is: 0.5.1
latest release found: 0.5.1 (0.5.1)
commit matching release found: fix: attach readme to the deno module. because, you know, you need docs (#8) (44b0c3d0915014aa925a2c5fbe91329278f6abf2) Warning: ⚠️ Verification failed, but that could be expected in test mode. The latest release after deployment is 0.5.1, but expected 0.6.0. This could indicate a problem with the deployment process. 🎉 Congratulations! The deployment process has completed. Bye-bye 👋! error: Uncaught (in promise) Error: socket hang up
    at connResetException (ext:deno_node/internal/errors.ts:1969:14)
    at node:http:512:30

Solution

Something about node:http and connection pools makes this error somewhat common. Switching to fetch is supposed to address it. I need a http solution that works on deno, bun, node.

Testing

  • Added automated tests.
  • Manually tested. If you check this box, provide instructions for others to test, too.

Notes for reviewers

This keeps happening on decaf and cathy's CI...

🔄 Verifying that the new release was created by re-running the get-latest-release step...
I will set the git committer config to the user provided values: name: github-actions[bot], email: 41898282+github-actions[bot]@users.noreply.github.com
 $> deno run --allow-all --quiet jsr:@levibostian/decaf-script-github-releases get
Latest git tag on the current branch is: 0.5.1
latest release found: 0.5.1 (0.5.1)
commit matching release found: fix: attach readme to the deno module. because, you know, you need docs (#8) (44b0c3d0915014aa925a2c5fbe91329278f6abf2)
Warning: ⚠️ Verification failed, but that could be expected in test mode. The latest release after deployment is 0.5.1, but expected 0.6.0. This could indicate a problem with the deployment process.
🎉 Congratulations! The deployment process has completed. Bye-bye 👋!
error: Uncaught (in promise) Error: socket hang up
    at connResetException (ext:deno_node/internal/errors.ts:1969:14)
    at node:http:512:30

this is an attempt to fix it
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 28, 2026

decaf

Running deployments in test mode. Results will appear below.
If this pull request and all of it's parent pull requests are merged using the...

...🟩 squash 🟩 merge method... 🚢 The next version of the project will be: 2.0.1

Learn more
Latest release: 2.0.0
Commit of latest release: 5bfdd17

Commits since last release:
- fix: switch how we do http requests to fix socket disconnect error

Related GitHub Issues

<!-- Link to any related GitHub issues that this pull request addresses or closes. -->

Problem

<!-- A clear description of the problem that this pull request is solving. -->

This keeps happening on decaf and cathy's CI...

🔄 Verifying that the new release was created by re-running the get-latest-release step... I will set the git committer config to the user provided values: name: github-actions[bot], email: 41898282+github-actions[bot]@users.noreply.github.com
 $> deno run --allow-all --quiet jsr:@levibostian/decaf-script-github-releases get
Latest git tag on the current branch is: 0.5.1
latest release found: 0.5.1 (0.5.1)
commit matching release found: fix: attach readme to the deno module. because, you know, you need docs (#8) (44b0c3d0915014aa925a2c5fbe91329278f6abf2) Warning: ⚠️ Verification failed, but that could be expected in test mode. The latest release after deployment is 0.5.1, but expected 0.6.0. This could indicate a problem with the deployment process. 🎉 Congratulations\! The deployment process has completed. Bye-bye 👋\! error: Uncaught (in promise) Error: socket hang up
    at connResetException (ext:deno_node/internal/errors.ts:1969:14)
    at node:http:512:30

Solution

<!-- Describe the approach you took to solve the problem and the changes made in this pull request. -->

Something about node:http and connection pools makes this error somewhat common. Switching to fetch is supposed to address it. I need a http solution that works on deno, bun, node.

Testing

<!-- Choose one of the below options for how you tested the code change. Include any specific setup or instructions for testing. -->

  • Added automated tests.
  • Manually tested. If you check this box, provide instructions for others to test, too.

Notes for reviewers

<!-- If there is any additional information you would like to share with the person reviewing this pull request, please provide it here. -->
- chore(deps): bump the github-action-dependencies group with 2 updates (#196)

Bumps the github-action-dependencies group with 2 updates:
actions/checkout and
denoland/setup-deno.

Updates actions/checkout from 4 to 6

Release notes

Sourced from actions/checkout's releases.

v6.0.0

What's Changed

Full Changelog: actions/checkout@v5.0.0...v6.0.0

v6-beta

What's Changed

Updated persist-credentials to store the credentials under $RUNNER_TEMP instead of directly in the local git config.

This requires a minimum Actions Runner version of v2.329.0 to access the persisted credentials for Docker container action scenarios.

v5.0.1

What's Changed

Full Changelog: actions/checkout@v5...v5.0.1

v5.0.0

What's Changed

⚠️ Minimum Compatible Runner Version

v2.327.1
Release Notes

Make sure your runner is updated to this version or newer to use this release.

Full Changelog: actions/checkout@v4...v5.0.0

v4.3.1

What's Changed

Full Changelog: actions/checkout@v4...v4.3.1

v4.3.0

What's Changed

... (truncated)

Changelog

Sourced from actions/checkout's changelog.

Changelog

v6.0.2

v6.0.1

v6.0.0

v5.0.1

v5.0.0

v4.3.1

v4.3.0

v4.2.2

v4.2.1

v4.2.0

v4.1.7

v4.1.6

... (truncated)

Commits

Updates denoland/setup-deno from 1 to 2

Release notes

Sourced from denoland/setup-deno's releases.

v2.0.0

What's Changed

Full Changelog: denoland/setup-deno@v1.5.1...v2.0.0

v1.5.2

What's Changed

Full Changelog: denoland/setup-deno@v1.5.1...v1.5.2

v1.5.1

What's Changed

Full Changelog: denoland/setup-deno@v1.5.0...v1.5.1

v1.5.0

What's Changed

Full Changelog: denoland/setup-deno@v1.4.1...v1.5.0

1.4.1

What's Changed

  • docs: update readme

Full Changelog: denoland/setup-deno@1.4.0...v1.4.1

1.4.0

What's Changed

Full Changelog: denoland/setup-deno@v1.3.0...1.4.0

v1.3.0

What's Changed

Full Changelog: denoland/setup-deno@v1.2.0...v1.3.0

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits
    that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all
    of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this
    group update PR and stop Dependabot creating any more for the specific
    dependency's major version (unless you unignore this specific
    dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this
    group update PR and stop Dependabot creating any more for the specific
    dependency's minor version (unless you unignore this specific
    dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR
    and stop Dependabot creating any more for the specific dependency
    (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore
    conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will
    remove the ignore condition of the specified dependency and ignore
    conditions

Signed-off-by: dependabot[bot] support@github.com
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

@levibostian levibostian merged commit c33b42b into main Feb 28, 2026
3 checks passed
@levibostian levibostian deleted the use-fetch branch February 28, 2026 13:08
levibostian added a commit to levibostian/decaf that referenced this pull request Feb 28, 2026
## Related GitHub Issues
<!-- Link to any related GitHub issues that this pull request addresses
or closes. -->

## Problem
<!-- A clear description of the problem that this pull request is
solving. -->

levibostian/cathy#197 

## Solution
<!-- Describe the approach you took to solve the problem and the changes
made in this pull request. -->

Install cathy 2.0.1

## Testing
<!-- Choose one of the below options for how you tested the code change.
Include any specific setup or instructions for testing. -->
- [ ] Added automated tests. 
- [X] Manually tested. If you check this box, provide instructions for
others to test, too.

I'll be creating a binary and testing it out in some projects of mine

## Notes for reviewers 
<!-- If there is any additional information you would like to share with
the person reviewing this pull request, please provide it here. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant