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

Mget request: nonexistent package name results in non-specific 500 error. #88

Open
bafulton opened this issue Jul 10, 2019 · 0 comments

Comments

@bafulton
Copy link

In a mget request, if npms does not recognize one of the package names, it fails with a 500 - internal server error. The error does not state which of the packages it did not recognize.

Context: I have a list of npm packages, some of which were created in the last few days. When POSTing to the mget endpoint with the list of packages, I receive a 500 error. I've established that it's related to the package '5g', which npms has no record of since it was just created 3 days ago (on July 7).

Npm package url: https://www.npmjs.com/package/5g
Npms search showing no '5g' package (as of July 10): https://npms.io/search?q=5g

Solutions: Ideally, npms would return the data for all recognized packages, with perhaps an 'errors' section that lists the unrecognized packages. More simply, it could just return a message with the 500 error stating which package was unrecognized, making it easier to resubmit the request with the offending package name removed.

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

1 participant