Skip to content
Discussion options

You must be logged in to vote

You’re getting 403/404 because PR attachment links from GitHub are served via short-lived, pre-signed AWS S3 URLs.

Here’s what’s going on:

Links like https://github.com/user-attachments/assets/... are redirects to AWS S3. The redirected URL already contains authentication in its query string (X-Amz-Algorithm, X-Amz-Signature, etc.). These URLs expire in ~5–10 minutes. If you try to hit the raw S3 domain without following the redirect, you’ll get 403 AccessDenied. If you try to sign them again (e.g., with aws4), you’ll get Only one auth mechanism allowed. If your request code doesn’t follow redirects, the original github.com/user-attachments/... will return 404.

How to download them in Nod…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Kirus59
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Anipaleja
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
npm
Labels
Question Ask and answer questions about GitHub features and usage npm Discussions around programming langages, open source and software development
2 participants