-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fails to fetch some files when using private registry #2470
Comments
Can you see if |
That gives the following:
The items that show up in the ConnectionClosed and 400 are different in the error message, but if run again, sometimes they show up as the oneliner or the GET error. |
Any suggestions for how to troubleshoot this or get more details (e.g., body of the 400)? |
This is still present in canary, please consider re-opening. the |
Same issue, error 400 downloading packages from private registry Urls are ok, work fine with curl. |
Same for me, 400 bad requests when pulling from S3 but the curl request is working just fine using the same URL. It seems related with: #643 |
It fails for me, too, when working with the JFrog as a private registry. I can see from the URL structure that the original error was related to the JFrog as well. It might be related to the way the HTTP client handles the redirects from the resource URL to the AWS bucket. JFrog says that it happens when two authentication types are involved.
Currently, this issue blocks us from using it in production. Here is a source for this assumption: https://jfrog.com/help/r/artifactory-how-to-resolve-a-400-bad-request-error-when-trying-to-download-or-resolve-artifacts/artifactory-how-to-resolve-a-400-bad-request-error-when-trying-to-download-or-resolve-artifacts P.S. Not all requests are failed. Only a small percentage. |
I'm running into 400 errors when trying to pull from a private npm registry. It looks to me that the forward slash is not being encoded in the way AWS codeartifact expects. This is the line of output from bun install. (Doing bun install --verbose blows up my terminal with more text than I know what to do with. grep cannot save me here. Fortunately the default output is enough)
comparatively, npm outputs this
my bunfig.toml looks like this [install.scopes]
"@<organization>"= { url = "https://<private-url-root>.d.codeartifact.us-east-1.amazonaws.com/npm/<Organization>", token="$<token-as-env-var>" } Everything else seems to install fine out of the box, but this is a bit of a show-stopper. |
This should've been fixed in Bun v1.0.3 (released 10 days ago) Please leave a comment if you still see it |
What version of Bun is running?
0.5.8
What platform is your computer?
Darwin 22.3.0 arm64 arm
What steps can reproduce the bug?
bun install
What is the expected behavior?
Packages to install normally as expected
What do you see instead?
Most packages install, however a few receive errors like:
Additional information
If I manually curl the URL shown in the error, it works fine and downloads a file (tgz). I am unable to determine why this errors in bun and why there's a 400 associated in the error line. I've attempted to include all the URL parameters, though many are redacted for security reasons. Hopefully this helps.
This same package.json works fine with node/npm install.
The text was updated successfully, but these errors were encountered: