Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetching a feed times out #2482

Open
3 tasks done
a-mair opened this issue Dec 2, 2023 · 1 comment
Open
3 tasks done

Fetching a feed times out #2482

a-mair opened this issue Dec 2, 2023 · 1 comment
Labels

Comments

@a-mair
Copy link

a-mair commented Dec 2, 2023

IMPORTANT

Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)

  • I have read the CONTRIBUTING.md and followed the provided tips
  • I accept that the issue will be closed without comment if I do not check here
  • I accept that the issue will be closed without comment if I do not fill out all items in the issue template.

Explain the Problem

What problem did you encounter?
Fetching the feed https://fcbayern.com/de/api/rss/contentliste/news times out.

I guess the problem are the HTTP headers sent to the web server. I tried using '''openssl s_client -connect fcbayern.com:443'''.
The minimum of required HTTP headers to receive to feed seems to be:

GET /de/api/rss/contentliste/news HTTP/1.1
Host: fcbayern.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1
Accept: application/rss+xml, application/rdf+xml;q=0.8, application/atom+xml;q=0.6, application/xml;q=0.4, text/xml;q=0.4, */*;q=0.2
Accept-Encoding: deflate, br

Even just swapping the two lines starting with "Accept" results in no results and a hanging connection:

GET /de/api/rss/contentliste/news HTTP/1.1
Host: fcbayern.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1
Accept-Encoding: deflate, br
Accept: application/rss+xml, application/rdf+xml;q=0.8, application/atom+xml;q=0.6, application/xml;q=0.4, text/xml;q=0.4, */*;q=0.2

What HTTP headers are used by the News app?
How can I debug that?

Steps to Reproduce

Explain what you did to encounter the issue

  1. Add the feed https://fcbayern.com/de/api/rss/contentliste/news
  2. Update the feed: occ news:updater:update-feed USER FEED_ID
  3. "cURL error 28: Operation timed out after 60001 milliseconds with 0 bytes received ..."

System Information

  • News app version: 24.0.0
  • Nextcloud version: 27.1.4
  • Cron type: system cron
  • PHP version: 8.1.20
  • Database and version: mariadb 10.6.14
  • Browser and version: Firefox 120.0.1
  • OS and version: Gentoo
Contents of nextcloud/data/nextcloud.log
{"reqId":"DgV5dVH2RiYCdVRFfoAa","level":1,"time":"2023-12-02T07:40:34+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"hitting https://fcbayern.com/de/api/rss/contentliste/news","userAgent":"--","version":"27.1.4.1","data":{"app":"news"}}
{"reqId":"DgV5dVH2RiYCdVRFfoAa","level":2,"time":"2023-12-02T07:41:34+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"https://fcbayern.com/de/api/rss/contentliste/news readerror : cURL error 28: Operation timed out after 60002 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://fcbayern.com/de/api/rss/contentliste/news","userAgent":"--","version":"27.1.4.1","data":{"app":"news"}}
Contents of Browser Error Console Didn't use browser.
@a-mair a-mair added the bug label Dec 2, 2023
@Grotax
Copy link
Member

Grotax commented Dec 18, 2023

Hey there,

you can check this by using this website: https://webhook.site and adding the unique url as new feed.
Of course that url does not have any feed but you can see what the first request looks like on your system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants