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

StackOverflow: Atom author tag in RSS feed #24

Closed
fraxen opened this issue Aug 4, 2020 · 6 comments
Closed

StackOverflow: Atom author tag in RSS feed #24

fraxen opened this issue Aug 4, 2020 · 6 comments
Assignees
Labels
bug Something isn't working upstream Bug is in a library.

Comments

@fraxen
Copy link

fraxen commented Aug 4, 2020

Hiya - this project looks good - coming from feed2imap (the old one)!

I am getting some odd errors in this feed:
https://stackoverflow.com/jobs/feed?location=stockholm&range=50&distanceUnits=Km&allowsremote=True

The error looks like something like:
Error applying item filter: cannot fetch Name from *gofeed.Person (1:8)
| Author.Name != "Weirdo"
| .......^

@Necoro
Copy link
Owner

Necoro commented Aug 5, 2020

Seems like you have a filter in your config (reads like the one from the wiki ;)). Could you supply your config snippet for this feed?

@Necoro Necoro self-assigned this Aug 5, 2020
@Necoro Necoro added the bug Something isn't working label Aug 5, 2020
@fraxen
Copy link
Author

fraxen commented Aug 5, 2020

I had the following filter from the example config.yml that I left in there:
item-filter: 'Author.Name != "Weirdo"'

When I remove that it works fine. But isn't it a tad odd that it would cause problem on one feed?

@Necoro
Copy link
Owner

Necoro commented Aug 5, 2020

Yes, that's odd. I'll have a look into what the issue is - from a first glance, the author tag seems fine in the feed. Perhaps it's an issue with gofeed.

@Necoro
Copy link
Owner

Necoro commented Aug 5, 2020

Hi @fraxen,

turns out: The RSS feed of Stack Overflow is weird: They use Atom's author tag in an RSS feed. This is not supported with gofeed, I've opened an issue.

I will update this bug with whatever is the result upstream and decide then on how to handle it.

NB: While disabling the filter will get rid of the error, you won't have author information in the items of that feed.

@Necoro Necoro changed the title Errors in StackOverflow feed StackOverflow: Atom author tag in RSS feed Aug 5, 2020
@Necoro Necoro added the upstream Bug is in a library. label Aug 5, 2020
Necoro added a commit that referenced this issue Aug 22, 2020
Necoro added a commit that referenced this issue Aug 22, 2020
@Necoro
Copy link
Owner

Necoro commented Aug 22, 2020

Hi @fraxen,

I got around to tackle the problem and create a (larger) PR for upstream's library (mmcdole/gofeed#153). For the time being, I replaced upstream's version of gofeed with my own patched in feed2imap-go.

Thus, coming the next release, this should be fixed :)

@Necoro Necoro closed this as completed Aug 22, 2020
@fraxen
Copy link
Author

fraxen commented Aug 24, 2020

great - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream Bug is in a library.
Projects
None yet
Development

No branches or pull requests

2 participants