-
Notifications
You must be signed in to change notification settings - Fork 118
Open
Description
This is prompted by #general > rattler-build is getting 403 but can curl source file @ ๐ฌ
I have no idea what the right way of handling this is. rattler-build should definitely be setting a application specific user agent but that wouldn't actually work in this case. This least bad working option I can come up with for this server is:
$ curl -sI -A "rattler-build/0.57.2 (compatible; conda; python-requests/2.32) reqwest/0.12" https://web.cels.anl.gov/projects/sigma/downloads/moab/moab-5.6.0.tar.gz
HTTP/2 200
date: Mon, 23 Feb 2026 05:11:18 GMT
content-type: application/x-gzip
content-length: 17056067
server: cloudflareI have no idea if this is a one-off bad server config or if it could be more widespread. Maybe @matthewfeickert knows if it's practical to contact Argonne to fix thier cloudflare config?
rattler-build attempt
`recipe.yaml`
schema_version: 1
package:
name: test-download
version: "0.1.0"
source:
url: https://web.cels.anl.gov/projects/sigma/downloads/moab/moab-5.6.0.tar.gz
sha256: 8d24a38619eb9fd326c7bdf9fdb01466149a0ab7dc3ef1caffda728858bf5a85
build:
script:
- echo "Works" >> $PREFIX/test-download.txt$ rattler-build build --recipe recipe.yaml
โญโ Finding outputs from recipe
โ Found 1 variants
โ
โ Build variant: test-download-0.1.0-hb0f4dca_0
โ
โ โญโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโฎ
โ โ Variant โ Version โ
โ โโโโโโโโโโโโโโโโโโโชโโโโโโโโโโโโโก
โ โ target_platform โ "linux-64" โ
โ โฐโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโฏ
โ
โฐโโโโโโโโโโโโโโโโโโโ (took 0 seconds)
โญโ Running build for recipe: test-download-0.1.0-hb0f4dca_0
โ
โ โญโ Fetching source code
โ โ Fetching source from url: https://web.cels.anl.gov/projects/sigma/downloads/moab/moab-5.6.0.tar.gz
โ โ
โ โฐโโโโโโโโโโโโโโโโโโโ (took 1 second)
โ
โฐโโโโโโโโโโโโโโโโโโโ (took 1 second)
Error: ร Failed to download source from url: HTTP status client error (403 Forbidden) for url (https://web.cels.anl.gov/projects/sigma/downloads/moab/moab-5.6.0.tar.gz)
โฐโโถ HTTP status client error (403 Forbidden) for url (https://web.cels.anl.gov/projects/sigma/downloads/moab/moab-5.6.0.tar.gz)
curl with default User-Agent
$ curl -sI https://web.cels.anl.gov/projects/sigma/downloads/moab/moab-5.6.0.tar.gz | head -3
HTTP/2 200
date: Mon, 23 Feb 2026 05:01:11 GMT
content-type: application/x-gzip
User-Agent comparison
Each test runs: curl -sI -A "..." https://web.cels.anl.gov/projects/sigma/downloads/moab/moab-5.6.0.tar.gz
- โ `` (403)
- โ
reqwest(403) - โ
rattler-build/0.57.2(403) - โ
wget/1.21(403) - โ
Mozilla/5.0(403) - โ
curl/8.0.0 - โ
python-requests/2.32.5 - โ
CPython/3.12.12 - โ
CPython/99.0.0 - โ
conda/25.11.1 requests/2.32.5(403) - โ
conda/25.11.1 requests/2.32.5 CPython/3.12.12 - โ
conda/25.11.1 requests/2.32.5 CPython/3.12.12 Linux/5.14.0-611.26.1.el9_7.x86_64 rhel/9.7 glibc/2.34 solver/libmamba conda-libmamba-solver/25.11.0 libmambapy/2.5.0 - โ
rattler-build/0.57.2 python-requests/2.32.5 - โ
rattler-build/0.57.2 CPython/3.12.12
403 response is a Cloudflare managed challenge
$ curl -s -A "reqwest" https://web.cels.anl.gov/projects/sigma/downloads/moab/moab-5.6.0.tar.gz | grep -oE "(cdn-cgi/challenge-platform|cType: .managed.|Just a moment)"
Just a moment
cType: 'managed'
cdn-cgi/challenge-platform
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels