Skip to content

Empty parameter value incorrectly interpreted as empty string, leading to bot failures #294

@yper3

Description

@yper3

Hello,

I have problems with the postgres SQL BOT:

2023-03-22 05:27:37,073 - SQL-Output - INFO - Bot will continue in 15 seconds.
2023-03-22 05:27:52,125 - SQL-Output - ERROR - Bot has found a problem.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/intelmq/lib/bot.py", line 319, in start
self.process()
File "/usr/lib/python3/dist-packages/intelmq/bots/outputs/sql/output.py", line 56, in process
if self.execute(query, values, rollback=True):
File "/usr/lib/python3/dist-packages/intelmq/lib/mixins/sql.py", line 115, in execute
self.cur.execute(query, values)
psycopg2.errors.SyntaxError: zero-length delimited identifier at or near """"
LINE 1: INSERT INTO events ("") VALUES ()
^

Do you know what can be?

Thanks!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions