Repository navigation
Curl error 92 on trying to add feed #4047
Replies: 7 comments
|
This error is a classic feedback from cURL, when the remote server is supposed to be HTTP 2, but ends up being 1.1. Can you try this? In the file lib/Config/FetcherConfig.php, at line 145, add That forces curl to use HTTP 1, and it works with HTTP 2 too. |
|
Hi sorry took so long to get back to you. I get this error now:
Transport error for https://www.cbc.ca/webfeed/rss/rss-topstories: cURL
error 92: HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err
2) (see https://curl.se/libcurl/c/libcurl-errors.html) for
https://www.cbc.ca/webfeed/rss/rss-topstories
I assume we are looking at the same code version is added as below.
public function getClient(): ClientInterface
{
return new FeedIoClient(
$this->clientService,
[
'User-Agent' => $this->getUserAgent(),
'Accept' => static::DEFAULT_ACCEPT,
'Accept-Encoding' => $this->checkEncoding(),
],
[
'timeout' => $this->client_timeout,
'version' => 1.1,
'connect_timeout' => static::CONNECT_TIMEOUT,
'allow_redirects' => [
'max' => $this->redirects,
'referer' => true,
'track_redirects' => true,
'on_redirect' => function ($request, $response,
$uri): void {
$host = parse_url((string) $uri, PHP_URL_HOST);
if ($host === false || $host === null) {
throw new LocalServerException('Could not
determine host for redirect destination');
}
if (!$this->hostValidator->isValid($host)) {
throw new LocalServerException(
'Redirect destination "' . $host . '"
violates local access rules'
);
}
},
],
]
);
}
…On Tue, 2026-11-17 at 09:41 -0800, Seguy Damien wrote:
dseguy left a comment (nextcloud/news#3994)
This error is a classic feedback from cURL, when the remote server is
supposed to be HTTP 2, but ends up being 1.1.
Can you try this? In the file lib/Config/FetcherConfig.php, at line
145, add
'version' => 1.1,
That forces curl to use HTTP 1, and it works with HTTP 2 too.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review
pull requests on the go with GitHub Mobile for iOS and Android.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
BTW runing curl on the command line as below returns articles:
$curl https://www.cbc.ca/webfeed/rss/rss-topstories
On Tue, 2026-11-17 at 09:41 -0800, Seguy Damien wrote:
dseguy
left a comment (nextcloud/news#3994) [1]
This error is a classic feedback from cURL, when the remote server is
supposed to be HTTP 2, but ends up being 1.1.
Can you try this? In the file lib/Config/FetcherConfig.php, at line
145, add
'version' => 1.1,
That forces curl to use HTTP 1, and it works with HTTP 2 too.
—
Reply to this email directly, view it on GitHub [2], or unsubscribe
[3].
Triage notifications, keep track of coding agent tasks and review
pull requests on the go with GitHub Mobile for iOS [4] and Android
[5]. Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
[1] (nextcloud/news#3994)
#3994 (comment)
[2] view it on GitHub
#3994?email_source=notifications&email_token=AASQDWHAKTZEO7OZFKTK6LT5ZSEVRA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOJVGYYDCMBVGQYKM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-6956010540
[3] unsubscribe
https://github.com/notifications/unsubscribe-auth/AASQDWA67VTEC4VDE4AL3ZD5ZSEVRAVCNFSNUABEKJSXA33TNF2G64TZHM3DAMRZGU3TSMR3JFZXG5LFHM3DCMRUGU3DINRSGOQXMAQ
[4] iOS
https://github.com/notifications/mobile/ios/AASQDWDMXBHTY4F2Q2MGXN35ZSEVRA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOJVGYYDCMBVGQYKM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG
[5] Android
https://github.com/notifications/mobile/android/AASQDWGTKI53YTDAYIEE2WL5ZSEVRA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOJVGYYDCMBVGQYKM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA
|
|
This also works from the cli
curl -- http2 https://www.cbc.ca/webfeed/rss/rss-topstories
On Tue, 2026-11-17 at 09:41 -0800, Seguy Damien wrote:
dseguy
left a comment (nextcloud/news#3994) [1]
This error is a classic feedback from cURL, when the remote server is
supposed to be HTTP 2, but ends up being 1.1.
Can you try this? In the file lib/Config/FetcherConfig.php, at line
145, add
'version' => 1.1,
That forces curl to use HTTP 1, and it works with HTTP 2 too.
—
Reply to this email directly, view it on GitHub [2], or unsubscribe
[3].
Triage notifications, keep track of coding agent tasks and review
pull requests on the go with GitHub Mobile for iOS [4] and Android
[5]. Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
[1] (nextcloud/news#3994)
#3994 (comment)
[2] view it on GitHub
#3994?email_source=notifications&email_token=AASQDWHAKTZEO7OZFKTK6LT5ZSEVRA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOJVGYYDCMBVGQYKM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-6956010540
[3] unsubscribe
https://github.com/notifications/unsubscribe-auth/AASQDWA67VTEC4VDE4AL3ZD5ZSEVRAVCNFSNUABEKJSXA33TNF2G64TZHM3DAMRZGU3TSMR3JFZXG5LFHM3DCMRUGU3DINRSGOQXMAQ
[4] iOS
https://github.com/notifications/mobile/ios/AASQDWDMXBHTY4F2Q2MGXN35ZSEVRA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOJVGYYDCMBVGQYKM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG
[5] Android
https://github.com/notifications/mobile/android/AASQDWGTKI53YTDAYIEE2WL5ZSEVRA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOJVGYYDCMBVGQYKM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA
|
|
It doesn't like the user agent:
curl -A "NextCloud-News/1.0"
https://www.cbc.ca/webfeed/rss/rss-topstories
curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err
2)
But changing the user agent in FetcherConfig.php still gave the curl 92
error.
George
On Tue, 2026-11-17 at 09:41 -0800, Seguy Damien wrote:
dseguy
left a comment (nextcloud/news#3994) [1]
This error is a classic feedback from cURL, when the remote server is
supposed to be HTTP 2, but ends up being 1.1.
Can you try this? In the file lib/Config/FetcherConfig.php, at line
145, add
'version' => 1.1,
That forces curl to use HTTP 1, and it works with HTTP 2 too.
—
Reply to this email directly, view it on GitHub [2], or unsubscribe
[3].
Triage notifications, keep track of coding agent tasks and review
pull requests on the go with GitHub Mobile for iOS [4] and Android
[5]. Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
[1] (nextcloud/news#3994)
#3994 (comment)
[2] view it on GitHub
#3994?email_source=notifications&email_token=AASQDWHAKTZEO7OZFKTK6LT5ZSEVRA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOJVGYYDCMBVGQYKM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-6956010540
[3] unsubscribe
https://github.com/notifications/unsubscribe-auth/AASQDWA67VTEC4VDE4AL3ZD5ZSEVRAVCNFSNUABEKJSXA33TNF2G64TZHM3DAMRZGU3TSMR3JFZXG5LFHM3DCMRUGU3DINRSGOQXMAQ
[4] iOS
https://github.com/notifications/mobile/ios/AASQDWDMXBHTY4F2Q2MGXN35ZSEVRA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOJVGYYDCMBVGQYKM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG
[5] Android
https://github.com/notifications/mobile/android/AASQDWGTKI53YTDAYIEE2WL5ZSEVRA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMOJVGYYDCMBVGQYKM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA
|
|
I really cannot reproduce this from here. So, I'm thinking about a netwok configuration, probably not your own, but on the way to cbc. `> dig +short A www.cbc.ca
You may try these two command line tools to check some server names to cbc.ca. The IP should be the same as mine, but from canada, you may get a different one (CBC checks that the viewers are from Canada. May be you are there? ). User-Agent yield no special behavior here. Another avenue would be the versions of the other involved libraries (including guzzle), though it is a bit simple and vague. HTH. |
|
Thanks for your help.
I do get a different IP address and yes I am in Canada.
$ dig +short A www.cbc.ca
san.cbc.ca.edgekey.net.
e5220.e12.akamaiedge.net.
23.6.241.36
Otherwise everything else is the same, oh well guess I'll just have to
live with it for now. I may poke into the source and see if I can
fudge it somehow,
Cheers
George
On Mon, 2026-11-30 at 07:15 -0800, Seguy Damien wrote:
dseguy
left a comment (nextcloud/news#3994) [1]
I really cannot reproduce this from here. So, I'm thinking about a
netwok configuration, probably not your own, but on the way to cbc.
`> dig +short A www.cbc.ca
san.cbc.ca.edgekey.net.
e5220.e12.akamaiedge.net.
23.218.57.66
> dig +short AAAA www.cbc.ca
> san.cbc.ca.edgekey.net.
> e5220.e12.akamaiedge.net.`
You may try these two command line tools to check some server names
to cbc.ca. The IP should be the same as mine, but from canada, you
may get a different one (CBC checks that the viewers are from Canada.
May be you are there? ).
User-Agent yield no special behavior here.
Another avenue would be the versions of the other involved libraries
(including guzzle), though it is a bit simple and vague.
HTH.
—
Reply to this email directly, view it on GitHub [2], or unsubscribe
[3].
Triage notifications, keep track of coding agent tasks and review
pull requests on the go with GitHub Mobile for iOS [4] and Android
[5]. Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
[1] (nextcloud/news#3994)
#3994 (comment)
[2] view it on GitHub
#3994?email_source=notifications&email_token=AASQDWAYTNRB3PT2BQNBWYL53WFKBA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTOMRYGI3DSMRZGE3KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-7282692916
[3] unsubscribe
https://github.com/notifications/unsubscribe-auth/AASQDWDWNBWTNXWTODKAS6L53WFKBAVCNFSNUABEKJSXA33TNF2G64TZHM3DAMRZGU3TSMR3JFZXG5LFHM3DCMRUGU3DINRSGOQXMAQ
[4] iOS
https://github.com/notifications/mobile/ios/AASQDWDTCQOB3K7JUPMG3EL53WFKBA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTOMRYGI3DSMRZGE3KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG
[5] Android
https://github.com/notifications/mobile/android/AASQDWAYSXVJF6LOM3IJY2353WFKBA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTOMRYGI3DSMRZGE3KM4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
IMPORTANT
Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)
Explain the Problem
When trying to add https://www.cbc.ca/webfeed/rss/rss-topstories the following error is displayed:
Transport error for https://www.cbc.ca/webfeed/rss/rss-topstories: cURL error 92: HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2) (see https://curl.se/libcurl/c/libcurl-errors.html) for https://www.cbc.ca/webfeed/rss/rss-topstories
Note that from the command line this seems to work correctly.
~$ curl -v --http2 https://www.cbc.ca/webfeed/rss/rss-topstories
Steps to Reproduce
Attempt to add https://www.cbc.ca/webfeed/rss/rss-topstories
System Information
All reactions