News App stopped updating feeds after upgrading to 25.3.1 ( cURL error 56: Received HTTP code 405 from proxy after CONNECT )

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 22.04
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2.4.52
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    • 8.3
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • 2 days ago after upgrading app to 25.3.1
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • replace me
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • replace me

Summary of the issue you are facing:

The feeds in the news app stopped updating. I get the following error for all feeds, or when I try to add a new feed:

cURL error 56: Received HTTP code 405 from proxy after CONNECT

I checked connectivity to the feeds from the server I get the correct response using curl -L {feed-url} for all the feeds. No recent changes in my server settings. I tried to update feeds using occ but that also fails with the same error. And a couple with 404 not found:

Client error: `GET http://lxer.com/module/newswire/headlines.rss` resulted in a `404 Not Found` response:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found (truncated...)

Common theme for these is that they are permanently moved links, so I can only access to them using -L option with curl.

Any help would be much appreciated.

Steps to replicate it (hint: details matter!):

  1. Upgrade News App to 25.3.1

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

{"reqId":"Z-jF9Fcxy0YfjMneEuT0ewAAiA8","level":2,"time":"2025-03-30T04:17:56+00:00","remoteAddr":"[REMOVED]","user":"[REMOVED]","app":"news","method":"POST","url":"/apps/news/feeds","message":"https://api.weather.gov/alerts/active.atom?area=DC read error : cURL error 56: Received HTTP code 405 from proxy after CONNECT (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.weather.gov/alerts/active.atom?area=DC","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0","version":"31.0.2.1","data":{"app":"news"},"id":"67e8c5f706de8"}
{"reqId":"kBVWlkZUFefPsDjU7j6n","level":2,"time":"2025-03-30T04:10:54+00:00","remoteAddr":"","user":false,"app":"news","method":"","url":"--","message":"Error while parsing feed: https://directorsblog.nih.gov/tag/virology/feed/ {\"class\":\"FeedIo\\Reader\\ReadErrorException\",\"message\":\"cURL error 56: Received HTTP code 405 from proxy after CONNECT (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://directorsblog.nih.gov/tag/virology/feed/\",\"code\":405,\"file\":\"/var/www/nextcloud/apps/news/vendor/debril/feed-io/src/FeedIo/Reader.php:81\",\"trace\":\"#0 /var/www/nextcloud/apps/news/vendor/debril/feed-io/src/FeedIo/FeedIo.php(126): FeedIo\\Reader->read()\\n#1 /var/www/nextcloud/apps/news/lib/Fetcher/FeedFetcher.php(141): FeedIo\\FeedIo->read()\\n#2 /var/www/nextcloud/apps/news/lib/Service/FeedServiceV2.php(320): OCA\\News\\Fetcher\\FeedFetcher->fetch()\\n#3 /var/www/nextcloud/apps/news/lib/Command/Updater/UpdateUser.php(52): OCA\\News\\Service\\FeedServiceV2->fetch()\\n#4 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(326): OCA\\News\\Command\\Updater\\UpdateUser->execute()\\n#5 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1078): Symfony\\Component\\Console\\Command\\Command->run()\\n#6 /var/www/nextcloud/3rdparty/symfony/console/Application.php(324): Symfony\\Component\\Console\\Application->doRunCommand()\\n#7 /var/www/nextcloud/3rdparty/symfony/console/Application.php(175): Symfony\\Component\\Console\\Application->doRun()\\n#8 /var/www/nextcloud/lib/private/Console/Application.php(187): Symfony\\Component\\Console\\Application->run()\\n#9 /var/www/nextcloud/console.php(87): OC\\Console\\Application->run()\\n#10 /var/www/nextcloud/occ(33): require_once('...')\\n#11 {main}\",\"previous\":{\"class\":\"GuzzleHttp\\Exception\\RequestException\",\"message\":\"cURL error 56: Received HTTP code 405 from proxy after CONNECT (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://directorsblog.nih.gov/tag/virology/feed/\",\"code\":405,\"file\":\"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php:276\",\"trace\":\"#0 /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php(205): GuzzleHttp\\Handler\\CurlFactory::createRejection()\\n#1 /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php(157): GuzzleHttp\\Handler\\CurlFactory::finishError()\\n#2 /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php(47): GuzzleHttp\\Handler\\CurlFactory::finish()\\n#3 /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\\Handler\\CurlHandler->__invoke()\\n#4 /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/Proxy.php(48): GuzzleHttp\\Handler\\Proxy::GuzzleHttp\\Handler\\{closure}()\\n#5 /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(35): GuzzleHttp\\Handler\\Proxy::GuzzleHttp\\Handler\\{closure}()\\n#6 /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php(31): GuzzleHttp\\PrepareBodyMiddleware->__invoke()\\n#7 /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php(71): GuzzleHttp\\Middleware::GuzzleHttp\\{closure}()\\n#8 /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php(66): GuzzleHttp\\RedirectMiddleware->__invoke()\\n#9 /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php(75): GuzzleHttp\\Middleware::GuzzleHttp\\{closure}()\\n#10 /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php(333): GuzzleHttp\\HandlerStack->__invoke()\\n#11 /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php(169): GuzzleHttp\\Client->transfer()\\n#12 /var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php(189): GuzzleHttp\\Client->requestAsync()\\n#13 /var/www/nextcloud/apps/news/lib/Fetcher/Client/FeedIoClient.php(60): GuzzleHttp\\Client->request()\\n#14 /var/www/nextcloud/apps/news/vendor/debril/feed-io/src/FeedIo/Reader.php(75): OCA\\News\\Fetcher\\Client\\FeedIoClient->getResponse()\\n#15 /var/www/nextcloud/apps/news/vendor/debril/feed-io/src/FeedIo/FeedIo.php(126): FeedIo\\Reader->read()\\n#16 /var/www/nextcloud/apps/news/lib/Fetcher/FeedFetcher.php(141): FeedIo\\FeedIo->read()\\n#17 /var/www/nextcloud/apps/news/lib/Service/FeedServiceV2.php(320): OCA\\News\\Fetcher\\FeedFetcher->fetch()\\n#18 /var/www/nextcloud/apps/news/lib/Command/Updater/UpdateUser.php(52): OCA\\News\\Service\\FeedServiceV2->fetch()\\n#19 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(326): OCA\\News\\Command\\Updater\\UpdateUser->execute()\\n#20 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1078): Symfony\\Component\\Console\\Command\\Command->run()\\n#21 /var/www/nextcloud/3rdparty/symfony/console/Application.php(324): Symfony\\Component\\Console\\Application->doRunCommand()\\n#22 /var/www/nextcloud/3rdparty/symfony/console/Application.php(175): Symfony\\Component\\Console\\Application->doRun()\\n#23 /var/www/nextcloud/lib/private/Console/Application.php(187): Symfony\\Component\\Console\\Application->run()\\n#24 /var/www/nextcloud/console.php(87): OC\\Console\\Application->run()\\n#25 /var/www/nextcloud/occ(33): require_once('...')\\n#26 {main}\"}}","userAgent":"--","version":"31.0.2.1","data":{"app":"news"},"id":"67e8c454f2e98"}
{"reqId":"kBVWlkZUFefPsDjU7j6n","level":2,"time":"2025-03-30T04:10:54+00:00","remoteAddr":"","user":false,"app":"news","method":"","url":"--","message":"https://directorsblog.nih.gov/tag/virology/feed/ read error : cURL error 56: Received HTTP code 405 from proxy after CONNECT (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://directorsblog.nih.gov/tag/virology/feed/","userAgent":"--","version":"31.0.2.1","data":{"app":"news"},"id":"67e8c454f2ea4"}

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HERE

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

I had this problem as well and was able to resolve it by removing the line in my config.php that was setting proxy equal to an empty string. I assume that isn’t the default anymore and was causing the feed update to attempt to use a non-existent proxy.

Thank you! It worked like a charm!

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.