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

RSS verification fails for planet.opensuse.org #94

Closed
KaratekHD opened this issue Jan 6, 2022 · 0 comments
Closed

RSS verification fails for planet.opensuse.org #94

KaratekHD opened this issue Jan 6, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@KaratekHD
Copy link
Owner

KaratekHD commented Jan 6, 2022

Describe the bug
The RSS module does not parse the feed on https://planet.opensuse.org/global/rss20.xml. It fails with This link is not an RSS Feed link

To Reproduce
Steps to reproduce the behavior:

  1. Open a private chat with the bot
  2. Run /rss https://planet.opensuse.org/global/rss20.xml
  3. See error

Expected behavior
The bot shows basic information about the feed file.

Screenshots
Screenshot_20220106-235954_Nekogram_X~2.png

Version information (please complete the following information):

  • Telegram Version: v8.4.2
  • Nemesis Version: v2.2.0

Additional context
This problem occurs because the feed file in planet-o.o does not have the correct HTTP Header set (see openSUSE/planet-o-o#21 ). A potential fix for this would be to handle the feedparser.NonXMLContentType exception, as described in https://feedparser.readthedocs.io/en/latest/character-encoding.html#advanced-encoding.

@KaratekHD KaratekHD added the bug Something isn't working label Jan 6, 2022
@KaratekHD KaratekHD self-assigned this Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant