Skip to content

Socket hang up #3603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
webberwang opened this issue Feb 13, 2025 · 1 comment · Fixed by #3604
Closed

Socket hang up #3603

webberwang opened this issue Feb 13, 2025 · 1 comment · Fixed by #3604
Assignees

Comments

@webberwang
Copy link
Member

webberwang commented Feb 13, 2025

Description of Bug


On many seed requests for e2e https://app.circleci.com/pipelines/github/codelab-app/platform/14201/workflows/7530dc16-b91d-478d-ae91-b5afd06874d3/jobs/50922/parallel-runs/0/steps/0-114, we're getting

Failed to proxy ****************:***********/app/seed-cypress-app [Error: socket hang up] { code: 'ECONNRESET' }
[WebServer] [Error: socket hang up] { code: 'ECONNRESET' }
Server response: Internal Server Error


In Node.js 20 and 22, the connection reuse policy became stricter, which led to more “socket hang up” errors. The main reason for this change is better performance, resource management, and compliance with modern networking standards.




  • need to set in multiple places
  1. Next.js nx project.json
  2. Next.js config proxy
  3. Nest.js main.ts
  4. Nest.js fetch agent (headers maybe?)

Thought this was resolved



On local dev, when setting the keep-alive in controller before return, we do get the same in frontend client

Image
Image

webberwang added a commit that referenced this issue Feb 20, 2025
refactor: add custom agent to graphql client
webberwang added a commit that referenced this issue Feb 24, 2025
refactor: add custom agent to graphql client
webberwang added a commit that referenced this issue Feb 24, 2025
refactor: add custom agent to graphql client
@vladyslav-polishchuk vladyslav-polishchuk self-assigned this Feb 26, 2025
webberwang added a commit that referenced this issue Feb 28, 2025
refactor: add custom agent to graphql client
webberwang added a commit that referenced this issue Mar 5, 2025
refactor: add custom agent to graphql client
webberwang added a commit that referenced this issue Mar 8, 2025
* refactor: add keep alive

refactor: add keep alive

refactor: add keep alive

refactor: add keep alive

* tf: add api_log_level

* refactor: add custom agent to graphql client (#3603)

refactor: add custom agent to graphql client

* ci: prune pnpm cache

* refactor: add custom agent to graphql client

* ci: add request timeout

* fix: change proxy timeout format

fix: change proxy timeout format

fix: change proxy timeout format

fix: change proxy timeout format

* tf: update api log

tf: update api log

tf: update api log

* fix: log spec

fix: log spec

fix: log spec

* fix: change import order

fix: change import order

* wip: add console to pino to check logs

wip: add console to pino to check logs

* wip: add keepAliveTimeout

wip: add keepAliveTimeout

* wip: increase playwright timeout

* wip: single spec

wip: single spec

wip: single spec

wip: single spec

wip: single spec

wip: single spec

wip: single spec

wip: single spec

wip: single spec

wip: single spec

wip: single spec

wip: single spec

wip: single spec

wip: single spec

wip: single spec

* wip: add docker logging

wip: add docker logging

* wip: add DEBUG

wip: add DEBUG

wip: add DEBUG

wip: add DEBUG

* chore: update neo4j

chore: update neo4j config

* ci: change timeout

ci: change timeout

ci: demo timeout

ci: demo timeout

ci: demo timeout

ci: demo timeout

ci: demo timeout

ci: demo timeout

ci: demo timeout

ci: demo timeout

ci: demo timeout

* ci: demo spec

ci: demo spec

ci: demo spec

ci: demo spec

ci: demo spec

ci: demo spec

ci: demo spec

ci: demo spec

ci: demo spec

ci: demo spec

* chore: update node

* chore: update node

* revert: downgrade node

revert: downgrade node

revert: downgrade node

revert: downgrade node

revert: downgrade node

revert: downgrade node

revert: downgrade node

revert: downgrade node

revert: downgrade node

revert: downgrade node

revert: downgrade node

* wip: working timeout fix

* wip: working timeout fix

wip: working timeout fix

wip: working timeout fix

wip: working timeout fix

wip: working timeout fix

wip: working timeout fix

wip: working timeout fix

* wip: add queue and ws

wip: add queue and ws

wip: add queue and ws

wip: add queue and ws

wip: add queue and ws

* ci: test out new websocket

ci: test out new websocket

* test: fix page specs

* chore: rebase conflict

* chore: upgrade to node 22

chore: upgrade to node 22

* ci: increase ram

* ci: add log timeout

* ci: add log timeout

* ci: fix int specs

* ci: fix int specs

* ci: fix page spec

* ci: fix page spec

* ci: fix resource spec

ci: fix resource spec

* chore: update nx & next

* ci: fixing int setup

* ci: fixing int setup

* ci: fixing int setup

* ci: fix auth guards

* ci: fix specs

* ci: fix specs

* ci: fix css specs

* chore: update nx & playwright

* test: fix e2e specs

* test: fix component specs

* ci: fix fill issue

* ci: fix fill issue
@vladyslav-polishchuk
Copy link
Contributor

via Hubstaff
User: Vladyslav Polishchuk

Project: platform - https://app.hubstaff.com/projects/2961404
Date Range: 02/26/25 - 03/05/25
Work session total: 16:29:37
Billable: Yes

Grand total: 16:29:37

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 a pull request may close this issue.

2 participants