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

[turborepo] Cannot create starter app with create-turbo-app and throw 503 error #5868

Closed
theaungmyatmoe opened this issue Sep 5, 2023 · 5 comments · Fixed by #5900
Closed
Assignees
Labels
kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage owned-by: turborepo

Comments

@theaungmyatmoe
Copy link

What version of Turborepo are you using?

1.0.0

What package manager are you using / does the bug impact?

pnpm

What operating system are you using?

Mac

Describe the Bug

➜  workspace pnpm dlx create-turbo@latest
../Library/pnpm/store/v3/tmp/dlx-4492    | +116 ++++++++++++
../Library/pnpm/store/v3/tmp/dlx-4492    | Progress: resolved 116, reused 116, downloaded 0, added 116, done

>>> TURBOREPO

>>> Welcome to Turborepo! Let's get you set up with a new codebase.

? Where would you like to create your turborepo? next-fdd
? Which package manager do you want to use? pnpm

Downloading files. This might take a moment.


>>> Unexpected error. Please report it as a bug:
av [Error]: Response code 503 (Service Unavailable)
    at Uo (/Users/admin/Library/pnpm/store/v3/tmp/dlx-4492/node_modules/.pnpm/create-turbo@1.10.13/node_modules/create-turbo/dist/cli.js:45:268)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Command.Nc (/Users/admin/Library/pnpm/store/v3/tmp/dlx-4492/node_modules/.pnpm/create-turbo@1.10.13/node_modules/create-turbo/dist/cli.js:218:615)
    at async Command.parseAsync (/Users/admin/Library/pnpm/store/v3/tmp/dlx-4492/node_modules/.pnpm/commander@10.0.1/node_modules/commander/lib/command.js:935:5)

Expected Behavior

It should create a starter app.

To Reproduce

pnpm dlx create-turbo@latest

Reproduction Repo

Cannot provide cause it have not been created to use it.

@theaungmyatmoe theaungmyatmoe added kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage owned-by: turborepo labels Sep 5, 2023
@bryanjhickey
Copy link

Some issue with me.

pnpm dlx create-turbo@latest


.../Library/pnpm/store/v3/tmp/dlx-90617  | +116 ++++++++++++
.../Library/pnpm/store/v3/tmp/dlx-90617  | Progress: resolved 116, reused 116, downloaded 0, added 116, done

>>> TURBOREPO

>>> Welcome to Turborepo! Let's get you set up with a new codebase.

? Where would you like to create your turborepo? ./my-turborepo
? Which package manager do you want to use? pnpm

Downloading files. This might take a moment.


>>> Unexpected error. Please report it as a bug:
av [Error]: Response code 503 (Service Unavailable)
    at Uo (/Users/bjh/Library/pnpm/store/v3/tmp/dlx-90617/node_modules/.pnpm/create-turbo@1.10.13/node_modules/create-turbo/dist/cli.js:45:268)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Command.Nc (/Users/bjh/Library/pnpm/store/v3/tmp/dlx-90617/node_modules/.pnpm/create-turbo@1.10.13/node_modules/create-turbo/dist/cli.js:218:615)
    at async Command.parseAsync (/Users/bjh/Library/pnpm/store/v3/tmp/dlx-90617/node_modules/.pnpm/commander@10.0.1/node_modules/commander/lib/command.js:935:5)

@nathanhammond
Copy link
Contributor

Hey y'all, the first thing that does is attempt to download from GitHub. You're seeing an error caused by this:

https://www.githubstatus.com/incidents/c8zjb9351hlc

We need to improve our error handling in this scenario to communicate what is happening, but it was a short term exceptional state.

@theaungmyatmoe
Copy link
Author

theaungmyatmoe commented Sep 5, 2023

Now I would like to close this issue due to the GitHub have been resolved and downloaded fine.
In addition, please make sure to update the error format for the end user so that will be better in future.

@todorone
Copy link

todorone commented Oct 31, 2023

@nathanhammond @tknickman

have the same 503 issue, but now with post-script. nothing helps 😢

node_modules/.pnpm/turbo@0.8.5/node_modules/turbo: Running postinstall script, failed in 4s
.../.pnpm/turbo@0.8.5/node_modules/turbo postinstall$ node install.js
│ /Users/.../node_modules/.pnpm/turbo@0.8.5/node_modules/turbo/install.js:291
│         throw e
│         ^
│ HTTPError: Response code 503 (Service Unavailable)
│     at Request.<anonymous> (/Users/fediru/dev/tvpil/node_modules/.pnpm/got@11.8.6/node_modules/got…
│     at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
│   code: 'ERR_NON_2XX_3XX_RESPONSE',
│   timings: {
│     start: 1698762901485,
│     socket: 1698762901485,
│     lookup: 1698762901487,
│     connect: 1698762901494,
│     secureConnect: 1698762901502,
│     upload: 1698762901502,
│     response: 1698762901745,
│     end: 1698762901746,
│     error: undefined,
│     abort: undefined,
│     phases: {
│       wait: 0,
│       dns: 2,
│       tcp: 7,
│       tls: 8,
│       request: 0,
│       firstByte: 243,
│       download: 1,
│       total: 261
│     }
│   }
│ }
│ Node.js v18.17.1
└─ Failed in 4s at /Users/.../node_modules/.pnpm/turbo@0.8.5/node_modules/turbo
 ELIFECYCLE  Command failed with exit code 1.

@theaungmyatmoe
Copy link
Author

@nathanhammond @tknickman

have the same 503 issue, but now with post-script. nothing helps 😢

node_modules/.pnpm/turbo@0.8.5/node_modules/turbo: Running postinstall script, failed in 4s
.../.pnpm/turbo@0.8.5/node_modules/turbo postinstall$ node install.js
│ /Users/.../node_modules/.pnpm/turbo@0.8.5/node_modules/turbo/install.js:291
│         throw e
│         ^
│ HTTPError: Response code 503 (Service Unavailable)
│     at Request.<anonymous> (/Users/fediru/dev/tvpil/node_modules/.pnpm/got@11.8.6/node_modules/got…
│     at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
│   code: 'ERR_NON_2XX_3XX_RESPONSE',
│   timings: {
│     start: 1698762901485,
│     socket: 1698762901485,
│     lookup: 1698762901487,
│     connect: 1698762901494,
│     secureConnect: 1698762901502,
│     upload: 1698762901502,
│     response: 1698762901745,
│     end: 1698762901746,
│     error: undefined,
│     abort: undefined,
│     phases: {
│       wait: 0,
│       dns: 2,
│       tcp: 7,
│       tls: 8,
│       request: 0,
│       firstByte: 243,
│       download: 1,
│       total: 261
│     }
│   }
│ }
│ Node.js v18.17.1
└─ Failed in 4s at /Users/.../node_modules/.pnpm/turbo@0.8.5/node_modules/turbo
 ELIFECYCLE  Command failed with exit code 1.

It's npm API issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage owned-by: turborepo
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants