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

Trouble with cache/forbidden-peers.csv #13

Open
eljusto opened this issue Jan 11, 2022 · 1 comment
Open

Trouble with cache/forbidden-peers.csv #13

eljusto opened this issue Jan 11, 2022 · 1 comment

Comments

@eljusto
Copy link

eljusto commented Jan 11, 2022

I've encountered an issue while configuring TelegramRSS.
At first, I made a request /rss/addmeto when I had no active session and got error:
No sessions available. Call /system/addSession?session=%session_name% or restart server with --session option.
Then I logged in as a bot and the following request /RSS/breakingmash responded with BOT_METHOD_INVALID.
These two results are cached in forbidden-peers.csv so all the next requests to addmeto and breakingmash answered with errors despite a correct session. I assume that there should be a way to invalidate the cache.

@xtrime-ru
Copy link
Owner

Hi! Thanks for feedback!

Currently cache invalidation can be made manually:

  1. Stop TelegramRSS
  2. Edit/remove forbidden-peers.csv
  3. Start

This was hotfix to fight against high amount of requests to tg.i-c-a.su from different IP addresses to same invalid channels.

I will be glad to merge your pull requests, if you have need in such feature. For example add created_ts to csv + ttl in settings....

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

2 participants