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

504 GATEWAY_TIMEOUT when uploading package.json file #1011

Open
saif-o99 opened this issue Jul 11, 2023 · 4 comments
Open

504 GATEWAY_TIMEOUT when uploading package.json file #1011

saif-o99 opened this issue Jul 11, 2023 · 4 comments
Labels
question Further information is requested

Comments

@saif-o99
Copy link

just by uploading a package.json file i get this error
image

@styfle
Copy link
Owner

styfle commented Jul 11, 2023

The package.json file is currently processed on the server so if it takes more than 30 seconds to install all dependencies, you will see this timeout error.

One solution is we could process the package.json on the client and fetch each package size individually from the server. That would give you 30 seconds per dependency.

Currently, Package Phobia is using 900 GB-hrs of Serverless Function execution per month and that change will likely increase usage, so I don't think I'll make that change any time soon.

@styfle styfle changed the title Error when uploading package.json file 504 GATEWAY_TIMEOUT when uploading package.json file Jul 11, 2023
@styfle styfle added the question Further information is requested label Jul 11, 2023
@MathurAditya724
Copy link
Contributor

Does migrating from yarn to pnpm, help with this? As it is a bit faster than yarn

@styfle
Copy link
Owner

styfle commented Oct 30, 2023

I doubt that the perf difference will be big enough. The frontend should probably parse the file on the client and then make multiple API requests to the server.

@silverwind
Copy link

silverwind commented Mar 16, 2024

Also seeing that error with certain big packages like eslint-config-hardcore, which is 177MB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants