Feed update notification failure #47

Closed
opened 2023-05-07 00:38:46 +00:00 by skobkin · 0 comments
Collaborator

Would you mind checking Atom feeds support in your bot?

Looks like feedparser already supports Atom. So it's probably not related to unsupported feed type, but something else...

One of good examples of such feeds is Github Releases:

  • https://github.com/transmission/transmission/releases.atom

Although it shows the feed title in the "Updates from %feed_name% feed" message, it doesn't return any entries.

image

Here are some logs from the server:

tg-rss-bot-app-1        | 2023-05-06 23:26:22: <CommandProcessor> [INFO] User 1 requested to subscribe to https://github.com/transmission/transmission/releases.atom
tg-rss-bot-app-1        | 2023-05-06 23:26:22: <CommandProcessor> [INFO] Subscription added
<...>
tg-rss-bot-scheduler-1  | 2023-05-06 23:44:13: <UpdateManager> [INFO] Processing [5] https://github.com/transmission/transmission/releases.atom
tg-rss-bot-scheduler-1  | Traceback (most recent call last):
tg-rss-bot-scheduler-1  |   File "/bot/update.py", line 29, in <module>
tg-rss-bot-scheduler-1  |     updater.update()
tg-rss-bot-scheduler-1  |   File "/bot/update_manager.py", line 39, in update
tg-rss-bot-scheduler-1  |     self.notifier.send_updates(chat_ids, diff, feed_obj.title)
tg-rss-bot-scheduler-1  |   File "/bot/telegram.py", line 146, in send_updates
tg-rss-bot-scheduler-1  |     self.__send_update(chat_id, update)
tg-rss-bot-scheduler-1  |   File "/bot/telegram.py", line 152, in __send_update
tg-rss-bot-scheduler-1  |     text=self.__format_message(update),
tg-rss-bot-scheduler-1  |   File "/bot/telegram.py", line 168, in __format_message
tg-rss-bot-scheduler-1  |     f"{item.date.strftime('%m.%d.%Y %H:%M')}\n\n"
tg-rss-bot-scheduler-1  | AttributeError: 'NoneType' object has no attribute 'strftime'
tg-rss-bot-scheduler-1  | 2023-05-06T23:44:15.165Z  common.go:121 ▶ ERROR [Job "update-feeds" (0c139293874f)] Finished in "2.160018114s", failed: true, skipped: false, error: error non-zero exit code: 1

P.S. This is a copy of the issue from Github.

Would you mind checking Atom feeds support in your bot? Looks like `feedparser` [already supports](https://feedparser.readthedocs.io/en/latest/common-atom-elements.html) Atom. So it's probably not related to unsupported feed type, but something else... One of good examples of such feeds is Github Releases: - `https://github.com/transmission/transmission/releases.atom` Although it shows the feed title in the "Updates from %feed_name% feed" message, it doesn't return any entries. ![image](https://user-images.githubusercontent.com/967576/236651474-9d3b0a6a-6515-4cfb-91bd-82c357ed1a57.png) Here are some logs from the server: ``` tg-rss-bot-app-1 | 2023-05-06 23:26:22: <CommandProcessor> [INFO] User 1 requested to subscribe to https://github.com/transmission/transmission/releases.atom tg-rss-bot-app-1 | 2023-05-06 23:26:22: <CommandProcessor> [INFO] Subscription added <...> tg-rss-bot-scheduler-1 | 2023-05-06 23:44:13: <UpdateManager> [INFO] Processing [5] https://github.com/transmission/transmission/releases.atom tg-rss-bot-scheduler-1 | Traceback (most recent call last): tg-rss-bot-scheduler-1 | File "/bot/update.py", line 29, in <module> tg-rss-bot-scheduler-1 | updater.update() tg-rss-bot-scheduler-1 | File "/bot/update_manager.py", line 39, in update tg-rss-bot-scheduler-1 | self.notifier.send_updates(chat_ids, diff, feed_obj.title) tg-rss-bot-scheduler-1 | File "/bot/telegram.py", line 146, in send_updates tg-rss-bot-scheduler-1 | self.__send_update(chat_id, update) tg-rss-bot-scheduler-1 | File "/bot/telegram.py", line 152, in __send_update tg-rss-bot-scheduler-1 | text=self.__format_message(update), tg-rss-bot-scheduler-1 | File "/bot/telegram.py", line 168, in __format_message tg-rss-bot-scheduler-1 | f"{item.date.strftime('%m.%d.%Y %H:%M')}\n\n" tg-rss-bot-scheduler-1 | AttributeError: 'NoneType' object has no attribute 'strftime' tg-rss-bot-scheduler-1 | 2023-05-06T23:44:15.165Z common.go:121 ▶ ERROR [Job "update-feeds" (0c139293874f)] Finished in "2.160018114s", failed: true, skipped: false, error: error non-zero exit code: 1 ``` P.S. This is a copy of the [issue](https://github.com/Miroslavsckaya/tg_rss_bot/issues/1) from Github.
skobkin added the
bug
label 2023-05-07 00:38:46 +00:00
Miroslavsckaya was assigned by skobkin 2023-05-07 00:38:46 +00:00
skobkin added this to the RSS Bot Kanban Perdoling project 2023-05-07 00:38:46 +00:00
skobkin referenced this issue from a commit 2023-06-25 16:38:08 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Miroslavsckaya/tg_rss_bot#47
No description provided.