Page MenuHomePhabricator

PDF service on English Wikipedia closing connection before download is done
Open, Needs TriagePublic

Description

Originally pointed out in 2019011210003151

alex@alex-laptop:~$ curl --http1.0 "https://en.wikipedia.org/api/rest_v1/page/pdf/Main_Page" -o Main_Page.pdf
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 65  845k   65  550k    0     0  1580k      0 --:--:-- --:--:-- --:--:-- 1580k
curl: (18) transfer closed with 302550 bytes remaining to read
alex@alex-laptop:~$ curl --http1.1 "https://en.wikipedia.org/api/rest_v1/page/pdf/Main_Page" -o Main_Page.pdf
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 62  845k   62  530k    0     0  1490k      0 --:--:-- --:--:-- --:--:-- 1490k
curl: (18) transfer closed with 322293 bytes remaining to read
alex@alex-laptop:~$ curl --http2 "https://en.wikipedia.org/api/rest_v1/page/pdf/Main_Page" -o Main_Page.pdf
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 95  845k   95  810k    0     0  1653k      0 --:--:-- --:--:-- --:--:-- 1650k
curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)
alex@alex-laptop:~$ curl --http2-prior-knowledge "https://en.wikipedia.org/api/rest_v1/page/pdf/Main_Page" -o Main_Page.pdf
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 77  845k   77  653k    0     0  1303k      0 --:--:-- --:--:-- --:--:-- 1301k
curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)

Whereas:

alex@alex-laptop:~$ curl --http2-prior-knowledge "https://www.mediawiki.org/api/rest_v1/page/pdf/MediaWiki" -o MediaWiki.pdf
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  320k  100  320k    0     0  1287k      0 --:--:-- --:--:-- --:--:-- 1287k
alex@alex-laptop:~$ ls -lh MediaWiki.pdf 
-rw-r--r-- 1 alex alex 321K Jan 12 15:28 MediaWiki.pdf

Event Timeline

Krenair created this task.Jan 12 2019, 3:29 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 12 2019, 3:29 PM
TheDJ added a subscriber: TheDJ.Jun 4 2019, 11:56 AM

New service in place now, Not sure if similar issues occur for Proton Do we have any idea why this happened with ElectronPDF ?