fetch from pkg.freebsd.org fails: Not Implemented

Ronald Klop <[email protected]>
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <205072086.1271.1767968893889@localhost>
Hi,

For a little tool (https://www.klop.ws/pkgstats/pkg-age.html) I regularly fetch some data from the pkg servers.
Since a day or two I get spurious errors. I added -vv to my fetch command and got this output.

Apparently the server sends HTTP 501 status code. And fetch exits with "Not Implemented".


scheme:   "https"
+user:     ""
+password: ""
+host:     "pkg.freebsd.org"
+port:     "0"
+document: "/FreeBSD:13:amd64/quarterly/data.pkg"
+---> pkg.freebsd.org:443
+resolving server address: pkg.freebsd.org:443
+SSL options: 82004850
+Peer verification enabled
+Using OpenSSL default CA cert file and path
+Verify hostname
+TLSv1.3 connection established using TLS_AES_128_GCM_SHA256
+Certificate subject: /CN=pkg.freebsd.org
+Certificate issuer: /C=US/O=Certainly/CN=Certainly Intermediate R1
+requesting https://pkg.freebsd.org/FreeBSD:13:amd64/quarterly/data.pkg
+>>> GET /FreeBSD:13:amd64/quarterly/data.pkg HTTP/1.1
+If-Modified-Since: Tue, 06 Jan 2026 15:22:51 GMT
+>>> If-Modified-Since: Tue, 06 Jan 2026 15:22:51 GMT
+>>> Host: pkg.freebsd.org
+>>> Accept: */*
+>>> User-Agent: fetch libfetch/2.0
+>>> Connection: close
+>>>
+<<< HTTP/1.1 501 First fragment: unexpected status code

+<<< Connection: close

+<<< Content-Length: 0

+<<< Via: 1.1 varnish, 1.1 varnish

+content length: [0]
+<<< ETag: "695d28cb-a3e396"

+<<< Age: 0

+<<< Accept-Ranges: bytes

+<<< Date: Fri, 09 Jan 2026 14:04:04 GMT

+<<< X-Served-By: cache-rtm-ehrd2290047-RTM

+<<< X-Cache: MISS

+<<< X-Cache-Hits: 0

+<<< X-Timer: S1767967444.984756,VS0,VE111

+<<< Cache-Control: no-cache,no-store,max-age=0

+<<<

+offset 0, length -1, size -1, clength 0
+fetch: https://pkg.freebsd.org/FreeBSD:13:amd64/quarterly/data.pkg: Not Implemented



The fetch in the script worked fine for about a year.
Does this ring a bell to anybody?

Regards,
Ronald.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.