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

No interval is set for collector #141

Open
multiflexi opened this issue Mar 6, 2023 · 0 comments
Open

No interval is set for collector #141

multiflexi opened this issue Mar 6, 2023 · 0 comments

Comments

@multiflexi
Copy link
Contributor

I am getting this errors when no refresh interval is set for collector:

collectors_1  | [2023-03-06 13:36:38 +0100] [10] [DEBUG] [None] COLLECTOR rss/1e60d424-66f1-40e7-9e13-bc60fa7d0f1e: RSS returned feed with 13 entries
collectors_1  | [2023-03-06 13:36:38 +0100] [10] [DEBUG] [None] COLLECTOR rss/1e60d424-66f1-40e7-9e13-bc60fa7d0f1e: RSS collection exceptionally failed
collectors_1  | [2023-03-06 13:36:38 +0100] [10] [INFO] [None] OSINTSource ID: 1e60d424-66f1-40e7-9e13-bc60fa7d0f1e
collectors_1  | [2023-03-06 13:36:38 +0100] [10] [INFO] [None] OSINTSource name: Mikrotik
collectors_1  | [2023-03-06 13:36:38 +0100] [10] [INFO] [None] ERROR: string index out of range
collectors_1  | [2023-03-06 13:36:38 +0100] [10] [DEBUG] [None] Traceback (most recent call last):
collectors_1  |   File "/app/collectors/rss_collector.py", line 95, in collect
collectors_1  |     limit = BaseCollector.history(interval)
collectors_1  |   File "/app/collectors/base_collector.py", line 129, in history
collectors_1  |     if interval[0].isdigit() and ':' in interval:
collectors_1  | IndexError: string index out of range
collectors_1  | 
collectors_1  | [2023-03-06 13:36:38 +0100] [10] [DEBUG] [None] RSS_COLLECTOR collection finished.

Maybe there should be some default value or the refresh interval should be mandatory in order to avoid this issue. The source does not show up in Assess and the reason is not clear unless one tries to debug it.

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

1 participant