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

[bug] setup command doesn't work in github actions #1072

Closed
marcus-sa opened this issue Sep 27, 2023 · 4 comments
Closed

[bug] setup command doesn't work in github actions #1072

marcus-sa opened this issue Sep 27, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@marcus-sa
Copy link

marcus-sa commented Sep 27, 2023

Describe the bug

Run moon setup
▪▪▪▪ installing node 20.7.0
Error: plugin::http

  × Failed to make HTTP request.
  ├─▶ request or response body error: error reading a body from connection:
  │   stream error received: unexpected internal error encountered
  ├─▶ error reading a body from connection: stream error received: unexpected
  │   internal error encountered
  ╰─▶ stream error received: unexpected internal error encountered

Steps to reproduce

  • Setup Node.js toolchain
  • Add the following steps to a workflow job
     - uses: moonrepo/setup-moon-action@v1
       with:
         version: 1.14.0
     
     - run: moon setup
  • Run it and watch it fail

Expected behavior

For moon setup to work in CI.

@marcus-sa marcus-sa added the bug Something isn't working label Sep 27, 2023
@marcus-sa marcus-sa reopened this Sep 27, 2023
@milesj
Copy link
Collaborator

milesj commented Sep 27, 2023

@marcus-sa Is this consistent?

This error is usually caused by Node.js's mirror.

@marcus-sa
Copy link
Author

@marcus-sa Is this consistent?

This error is usually caused by Node.js's mirror.

50/50

@milesj
Copy link
Collaborator

milesj commented Sep 30, 2023

I added more logging to 1.14.3 to help pinpoint the issue if you want to try it.

@milesj
Copy link
Collaborator

milesj commented Oct 30, 2023

Gonna close as this is mostly an issue on Node.j's distro, and this can also be bypassed in 1.16: https://moonrepo.dev/blog/moon-v1.16#force-toolchain-to-use-global-binaries

@milesj milesj closed this as completed Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants