[GH-ISSUE #158] Tweets matching two feeds, one with whitelist and one without, are posted to neither. #43

Open
opened 2026-09-02 13:09:03 +02:00 by TheLovinator · 0 comments
Owner

Originally created by @dziban303 on GitHub (Aug 21, 2023).
Original GitHub issue: https://github.com/TheLovinator1/discord-twitter-webhooks/issues/158

Since it seems nitter.net has gotten the RSS back up and running (for now!), I got a bunch of tweets posted in my Discord server today. From reading the issues on nitter's repo, I knew it was nearly ready, and in preparation I added a new feed. It does not seem to have worked, though other feeds did, and I'm trying to troubleshoot.

I have one feed set as a 'catch-all' to post all tweets and replies from NHC_Atlantic to one webhook, and another feed set for tweets and replies from NHC_Atlantic with Franklin whitelisted going to a different webhook.

The following tweet should have matched both, but instead it matches neither. Since other tweets from NHC_Atlantic went through, I guess it's something with the second feed with whitelist causing both feeds to fail?

Log using blockquote instead of codeblock as it's all on one line, this should be easier to read:

2023-08-21 at 14:51:50 INFO Webhook posted for https://nitter.lovinator.space/NHC_Atlantic/status/1693634581017026628#m
2023-08-21 at 14:51:50 INFO Skipping entry Entry(id='https://nitter.lovinator.space/NHC_Atlantic/status/1693634581017026628#m', updated=None, title='Tropical Storm #Franklin Advisory 4: Franklin Slowing Down Over the Caribbean Sea. Heavy Rainfall Expected For Puerto Rico and Hispaniola. http://hurricanes.gov', link='https://nitter.lovinator.space/NHC_Atlantic/status/1693634581017026628#m', author='@NHC_Atlantic', published=datetime.datetime(2023, 8, 21, 14, 42, 4, tzinfo=datetime.timezone.utc), summary='

Tropical Storm #Franklin Advisory 4: Franklin Slowing Down Over the Caribbean Sea. Heavy Rainfall Expected For Puerto Rico and Hispaniola. hurricanes.gov

', content=(), enclosures=(), read=False, read_modified=None, important=None, important_modified=None, added=datetime.datetime(2023, 8, 21, 14, 51, 45, 465354, tzinfo=datetime.timezone.utc), added_by='feed', last_updated=datetime.datetime(2023, 8, 21, 14, 51, 45, 465354, tzinfo=datetime.timezone.utc), original_feed_url='https://nitter.lovinator.space/NHC_Atlantic/rss', feed=Feed(url='https://nitter.lovinator.space/NHC_Atlantic/rss', updated=None, title='National Hurricane Center / @NHC_Atlantic', link='https://nitter.lovinator.space/NHC_Atlantic', author=None, subtitle='Twitter feed for: @NHC_Atlantic. Generated by nitter.lovinator.space', version='rss20', user_title=None, added=datetime.datetime(2023, 7, 19, 17, 19, 0, 70563, tzinfo=datetime.timezone.utc), last_updated=datetime.datetime(2023, 8, 21, 14, 51, 45, 465354, tzinfo=datetime.timezone.utc), last_exception=None, updates_enabled=True)) as it is not whitelisted

The 'Skipping entry' line is repeated again exactly, suggesting it was compared to both feeds.


Reality check, here's a screenshot of my 'catch-all' feed:

image

and the feed with 'Franklin' whitelisted:

image

They are identical with the exception of the webhook address, and one has a whitelist item while the other does not.

Originally created by @dziban303 on GitHub (Aug 21, 2023). Original GitHub issue: https://github.com/TheLovinator1/discord-twitter-webhooks/issues/158 Since it seems nitter.net has gotten the RSS back up and running (for now!), I got a bunch of tweets posted in my Discord server today. From reading the issues on nitter's repo, I knew it was nearly ready, and in preparation I added a new feed. It does not seem to have worked, though other feeds did, and I'm trying to troubleshoot. I have one feed set as a 'catch-all' to post all tweets and replies from `NHC_Atlantic` to one webhook, and another feed set for tweets and replies from `NHC_Atlantic` with `Franklin` whitelisted going to a different webhook. The following tweet should have matched both, but instead it matches neither. Since other tweets from NHC_Atlantic went through, I guess it's something with the second feed with whitelist causing both feeds to fail? Log using blockquote instead of codeblock as it's all on one line, this should be easier to read: > 2023-08-21 at 14:51:50 INFO Webhook posted for https://nitter.lovinator.space/NHC_Atlantic/status/1693634581017026628#m 2023-08-21 at 14:51:50 INFO Skipping entry Entry(id='https://nitter.lovinator.space/NHC_Atlantic/status/1693634581017026628#m', updated=None, title='Tropical Storm #Franklin Advisory 4: Franklin Slowing Down Over the Caribbean Sea. Heavy Rainfall Expected For Puerto Rico and Hispaniola. http://hurricanes.gov', link='https://nitter.lovinator.space/NHC_Atlantic/status/1693634581017026628#m', author='@NHC_Atlantic', published=datetime.datetime(2023, 8, 21, 14, 42, 4, tzinfo=datetime.timezone.utc), summary='<p>Tropical Storm <a href="https://nitter.lovinator.space/search?q=%23Franklin">#Franklin</a> Advisory 4: Franklin Slowing Down Over the Caribbean Sea. Heavy Rainfall Expected For Puerto Rico and Hispaniola. <a href="http://hurricanes.gov">hurricanes.gov</a></p>', content=(), enclosures=(), read=False, read_modified=None, important=None, important_modified=None, added=datetime.datetime(2023, 8, 21, 14, 51, 45, 465354, tzinfo=datetime.timezone.utc), added_by='feed', last_updated=datetime.datetime(2023, 8, 21, 14, 51, 45, 465354, tzinfo=datetime.timezone.utc), original_feed_url='https://nitter.lovinator.space/NHC_Atlantic/rss', feed=Feed(url='https://nitter.lovinator.space/NHC_Atlantic/rss', updated=None, title='National Hurricane Center / @NHC_Atlantic', link='https://nitter.lovinator.space/NHC_Atlantic', author=None, subtitle='Twitter feed for: @NHC_Atlantic. Generated by nitter.lovinator.space', version='rss20', user_title=None, added=datetime.datetime(2023, 7, 19, 17, 19, 0, 70563, tzinfo=datetime.timezone.utc), last_updated=datetime.datetime(2023, 8, 21, 14, 51, 45, 465354, tzinfo=datetime.timezone.utc), last_exception=None, updates_enabled=True)) as it is not whitelisted The 'Skipping entry' line is repeated again exactly, suggesting it was compared to both feeds. ---- ### Reality check, here's a screenshot of my 'catch-all' feed: ![image](https://github.com/TheLovinator1/discord-twitter-webhooks/assets/7931765/ff7e8b49-f1d6-4d90-ae4f-a87e48958629) ### and the feed with 'Franklin' whitelisted: ![image](https://github.com/TheLovinator1/discord-twitter-webhooks/assets/7931765/eb38d91c-bd64-492a-a1b0-c398fc50930f) They are identical with the exception of the webhook address, and one has a whitelist item while the other does not.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
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
TheLovinator/discord-twitter-webhooks#43
No description provided.