Skip to content
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

Error: server closed unexpectedly on gitlab CI #338

Open
mbehzad opened this issue Dec 4, 2022 · 1 comment
Open

Error: server closed unexpectedly on gitlab CI #338

mbehzad opened this issue Dec 4, 2022 · 1 comment

Comments

@mbehzad
Copy link

mbehzad commented Dec 4, 2022

Bug report

Hi,

  • version
    1.14.0
  • platform
    node 18.12.0 on linux via docker image cypress/browsers:node18.12.0-chrome106-ff106 in Gitlab.CI
  • expected behavior
    After tests are finished to stop the child processes and exit
  • actual behavior
    Tests pass successfully, then it seems start-server-and-test stops the processes for the server (tested with both a webpack dev server started via a node script and also when the server is a simple http-server server called via a npm script), but suddenly the Error: server closed unexpectedly error is thrown. This doesn't happen when the npm script is run locally.
    ✔  All specs passed!                        00:08        6        6        -        -        -  
2022-12-02T15:34:29.508Z start-server-and-test getting child processes
2022-12-02T15:34:29.516Z start-server-and-test stopping child processes
2022-12-02T15:34:29.516Z start-server-and-test stopping server
2022-12-02T15:34:29.517Z start-server-and-test getting child processes
2022-12-02T15:34:29.517Z start-server-and-test getting child processes
2022-12-02T15:34:29.522Z start-server-and-test stopping child processes
2022-12-02T15:34:29.522Z start-server-and-test stopping server
Error: server closed unexpectedly
    at ChildProcess.onClose (/builds/frontend/node_modules/start-server-and-test/src/index.js:75:14)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1091:16)
    at ChildProcess._handle.onexit (node:internal/child_process:302:5)
...
ERROR: Job failed: exit code 1

cheers

@pantoniotti
Copy link

pantoniotti commented Jun 18, 2024

Hi there,
I have the exact same issue on version 2.0.4 and node 22. Is there an update on this ?
Thanks

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

No branches or pull requests

2 participants