-
Notifications
You must be signed in to change notification settings - Fork 2k
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
fetch failed error in creating payload app with create-payload-app #10151
Comments
Please add a reproduction in order for us to be able to investigate. Depending on the quality of reproduction steps, this issue may be closed if no reproduction is provided. Why was this issue marked with the
|
this issue marked with the invalid-reproduction label because I can't create new repository. I can copy your template, but I want to understand why I can't create app from scratch with terminal |
Hey @Inna-Mykytiuk , this error is likely due to not being able to fetch the template code from the github URL. You can get more info by passing the It will give back a URL like Can you verify that you're able to reach that file in a browser? It will attempt to download the specified file. |
No access, The connection is not confidential and is marked as potentially threatening to my system. But I managed to upload the file. What should I do with it? |
hello @Inna-Mykytiuk , do you have the same issue if you try to install next js |
No, I don't have problem with Next installation |
This problem with payload occurs both on the computer and on the laptop, the Windows10-11 operating system |
@Inna-Mykytiuk I searched a bit, most cases were because of VPN/Proxy or antivirus and firewalls when you run this what you get
you can install the web template using git cli using
|
This appears to be very specific to your networking setup. Beyond fixing that configuration, it may be easier to grab the code directly from the repository here by either cloning the repository and copying or downloading the repo via zip and copying. Closing this as it is something to do w/ your specific setup and no others are seeing this issue. |
This issue has been automatically locked. |
Describe the Bug
Every time I want to install an app, I get this message, no matter if I use npx or pnpx
$ npx create-payload-app
┌ create-payload-app
│
◇ ────────────────────────────────────────────╮
│ │
│ Welcome to Payload. Let's create a project! │
│ │
├───────────────────────────────────────────────╯
│
◇ Project name?
│ payload
│
◇ Choose project template
│ blank
│
◇ Select a database
│ MongoDB
│
◇ Enter MongoDB connection string
│ mongodb://127.0.0.1/payload
│
■ fetch failed
or
$ npx create-payload-app
┌ create-payload-app
│
◇ ────────────────────────────────────────────╮
│ │
│ Welcome to Payload. Let's create a project! │
│ │
├───────────────────────────────────────────────╯
│
◇ Project name?
│ payload-test
│
◇ Choose project template
│ blank
│
◇ Select a database
│ MongoDB
│
◇ Enter MongoDB connection string
│ mongodb+srv://innkapinnka:[email protected]/
│
■ fetch failed
Result will be the same. Help me please.
Link to the code that reproduces this issue
Reproduction Steps
create payload application with following steps
1 pnpx create-payload-app
2. Select a database as MongoDB
3. Enter MongoDB connection string
it will breakdown with fetch failed error
Which area(s) are affected? (Select all that apply)
area: core
Environment Info
The text was updated successfully, but these errors were encountered: