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

Can't subscribe to some feeds that look fine when requested manually #96

Open
bekopharm opened this issue Oct 8, 2019 · 4 comments
Open

Comments

@bekopharm
Copy link

Some feeds never show any entries despite having a successful subscription. I suspect it's date related.

Yarns Microsub Server Version 1.0.2
WordPress Version 5.2.3

Some render a preview on adding:

https://hroarr.com/feed/

This may actually be due to age of posts. Description says Number of days to store feed items before deleting so one assumes it's number since fetched and not since today.

Some not even that:

https://medium.com/feed/okuna

When executed manually via wp-cli only plenty of warnings about Date show but script succeeds:

wp-cli.phar --debug cron event run yarns_microsub_server_cron
[...]
PHP Warning:  A non-numeric value encountered in wp-includes/SimplePie/Parse/Date.php on line 694
Warning: A non-numeric value encountered in wp-includes/SimplePie/Parse/Date.php on line 694
PHP Warning:  A non-numeric value encountered in wp-includes/SimplePie/Parse/Date.php on line 694
Warning: A non-numeric value encountered in wp-includes/SimplePie/Parse/Date.php on line 694
Executed the cron event 'yarns_microsub_server_cron' in 14.608s.
@jackjamieson2
Copy link
Owner

jackjamieson2 commented Oct 8, 2019 via email

@jackjamieson2
Copy link
Owner

Looking into the Medium feed.

I'm not seeing the warnings about Date, but that may simply be because I've updated the Parse-This library on my testing server and the problem has been solved there.

However, I'm also not getting any results. When I try to preview https://medium.com/feed/okuna the following is returned:

{"url":"https:\/\/medium.com\/feed\/okuna",
"name":"<![CDATA[Okuna - Medium]]>",
"_raw":{"meta":{"title":"<![CDATA[Okuna - Medium]]>"}},
"_parse_time":0,
"_post_limit":5}

I noticed an oddity that might be responsible:
When I access https://medium.com/feed/okuna in my browser, the content-type header is text/xml

When I ran the script through Parse_This_Discovery->fetch(), the content-type header is returned as text/html. If Parse-This doesn't recognize the feed type, it won't be able to parse it correctly, leading to 0 items in the feed.

@dshanske - Do you have any thoughts on this?

@bekopharm
Copy link
Author

Maybe cloudflare. When I try to reproduce this with curl (Accept: text/html) I still get content-type: text/xml; charset=UTF-8 returned. XML looks legit too.

@dshanske
Copy link
Collaborator

With the medium feed, I'm getting Service Unavailable. Suggests it doesn't like my user agent.

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

No branches or pull requests

3 participants