DUB error with package ddn-data-xml
Dejan Lekic
dejan.lekic at gmail.com
Sun May 3 18:08:31 UTC 2026
On Saturday, 2 May 2026 at 16:21:22 UTC, torhu wrote:
> I'm not sure if this is a dub issue, a code.dlang.org issue or
> if the zip file is broken. I also tried version 1.1.2 of the
> package, same error.
The issue is more weird than I thought... Looks like Codeberg for
whatever reason refuses connections under certain circumstances:
```
mingw> curl -L -o ddn-6.2.0.zip
https://code.dlang.org/packages/ddn/6.2.0.zip
mingw> file ddn-6.2.0.zip
ddn-6.2.0.zip: HTML document, ASCII text
```
however,
```
mingw> wget -v https://code.dlang.org/packages/ddn/6.2.0.zip
--2026-05-03 19:00:58--
https://code.dlang.org/packages/ddn/6.2.0.zip
Loaded CA certificate '/usr/ssl/certs/ca-bundle.crt'
Resolving code.dlang.org (code.dlang.org)... 104.21.37.229,
172.67.214.172, 2606:4700:3033::ac43:d6ac, ...
Connecting to code.dlang.org
(code.dlang.org)|104.21.37.229|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeberg.org/ddn/ddn/archive/v6.2.0.zip
[following]
--2026-05-03 19:00:58--
https://codeberg.org/ddn/ddn/archive/v6.2.0.zip
Resolving codeberg.org (codeberg.org)... 217.197.84.140,
2a0a:4580:103f:c0de::1
Connecting to codeberg.org (codeberg.org)|217.197.84.140|:443...
connected.
HTTP request sent, awaiting response... 200 OK
Length: 839834 (820K) [application/octet-stream]
Saving to: ‘6.2.0.zip’
6.2.0.zip
100%[=============================================>] 820.15K
3.21MB/s in 0.2s
2026-05-03 19:00:59 (3.21 MB/s) - ‘6.2.0.zip’ saved
[839834/839834]
mingw> file 6.2.0.zip
6.2.0.zip: Zip archive data, at least v1.0 to extract,
compression method=store
```
So as you can see it works with `wget` but not with `curl` (which
dub uses internally I believe). Why is this happening is beyond
me to be honest...
More information about the Digitalmars-d
mailing list