Ranchero-Software / NetNewsWire

RSS reader for macOS and iOS.
https://netnewswire.com/
MIT License
8.32k stars 526 forks source link

Feed not found - Can’t add a feed because no feed was found. #2055

Closed kiwijuice closed 2 years ago

kiwijuice commented 4 years ago

The following feed can not be added to NetNewsWire. However it can be added to other RSS services (i.e flowreader):

When I'm trying to add it, I get the following message: Feed not found - Can’t add a feed because no feed was found.

These feeds are valid, according to the w3 validator: https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fwww.gov.il%2Fhe%2Fapi%2FNewsApi%2Frss%2Fd6b46ce2-975b-43ee-afbd-404ba29b01e8

Desktop Version 5.0.3 (2618) on macOS 10.15.3

brentsimmons commented 4 years ago

When I try to download these via the command line, I get a 404 Not Found error on each. We don’t plan to deal with this.

[RSAir:~/Desktop] brent% curl -I 'https://www.gov.il/he/api/NewsApi/rss/d6b46ce2-975b-43ee-afbd-404ba29b01e8'
HTTP/1.1 404 Not Found
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache
Pragma: no-cache
Expires: 0
Connection: close
kiwijuice commented 4 years ago

Is there any way to enable logs, I'll check it?

I think this server doesn't support HEAD requests, maybe that's the problem?

brentsimmons commented 4 years ago

Ah! I see.

My guess is that the issue is that it’s using UTF-16 encoding, and our feed-finding code may not work with UTF-16. So I’ll reopen this.

andrewtj commented 3 years ago

I've encountered another UTF-16 feed: https://blog.briancmoses.com/atom.xml

brentsimmons commented 3 years ago

The feed claims that it’s in UTF-8 encoding…

<?xml version="1.0" encoding="utf-8"?>

…but you’re correct, it’s UTF-16.

This comes up so immensely rarely that it may be a long time before we deal with it.

zimmerman1181 commented 2 years ago

Here's another feed example that seems to be drumming up the same "Feed not found" error message: https://www.mcknightsseniorliving.com/feed/

And the results from curl:

~ % curl -I 'https://www.mcknightsseniorliving.com/feed/'
HTTP/2 200 
date: Wed, 23 Mar 2022 15:56:04 GMT
content-type: application/rss+xml; charset=UTF-8
cf-ray: 6f085adc295727c4-SLC
cache-control: max-age=600, must-revalidate
etag: W/"d6c742eb966b6c957774a576721fc206-gzip"
last-modified: Wed, 23 Mar 2022 11:30:00 GMT
link: <https://www.mcknightsseniorliving.com/wp-json/>; rel="https://api.w.org/"
vary: Accept-Encoding, Accept-Encoding, X-WPENGINE-SEGMENT, Accept-Encoding
cf-cache-status: DYNAMIC
x-frame-options: SAMEORIGIN
x-distributor: yes
x-powered-by: WP Engine
x-cacheable: CacheAlways: feed
x-cache: MISS
content-security-policy: frame-ancestors 'self' https://www.mycme.com/ https://mycmesandbox.thoughtindustries.com https://nacesandbox.thoughtindustries.com https://www.naceonline.com/
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
server: cloudflare
brentsimmons commented 2 years ago

When I use curl to view the response body — the actual feed — I get nothing. Zero bytes. It’s worth reporting a bug to the feed owner.