Skip to content

Skip .curlrc and show HTTP errors in download_packages.sh API calls - #259

Merged
guanzhousongmicrosoft merged 1 commit into
documentdb:mainfrom
GuanzhouSong:guanzhousong/curl-flags
Nov 15, 2026
Merged

guanzhousongmicrosoft merged 1 commit into
documentdb:mainfrom
GuanzhouSong:guanzhousong/curl-flags

Conversation

@GuanzhouSong

Copy link
Copy Markdown
Contributor

The -q in curl -fqs does nothing: curl only skips .curlrc when -q is the first argument, so a local curlrc (proxy, extra headers, --write-out, --output) still applies to the request that carries GH_TOKEN. And -s without -S hides the HTTP status, so a 401 or rate-limit 403 shows only "Could not fetch release list" — the failure #258 was meant to fix becomes impossible to diagnose.

Checked locally: with a curlrc setting write-out, curl -fqs applied it and curl -q -fsS didn't; a 404 now prints curl: (22) The requested URL returned error: 404.

Signed-off-by: Guanzhou Song <guanzhousong@microsoft.com>
@guanzhousongmicrosoft
guanzhousongmicrosoft merged commit 6ece221 into documentdb:main Nov 15, 2026
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants