gathering / gondul

Network management/monitoring system specialized for temporary events
http://tech.gathering.org
GNU General Public License v2.0
42 stars 10 forks source link

Cannot add network with tags #227

Open sklirg opened 1 year ago

sklirg commented 1 year ago

Trying to add a network with tags (e.g. ["keklol"]) results in some the following:

DBD::Pg::db do failed: ERROR:  invalid input syntax for type json
LINE 1: ...ULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, DEFAULT, '{"keklol"...
                                                             ^
DETAIL:  Expected ":", but found "}".
CONTEXT:  JSON data, line 1: {"keklol"} at /opt/gondul/web/api/write/networks line 58, <STDIN> line 1.
DBD::Pg::db do failed: ERROR:  invalid input syntax for type json
LINE 1: ... '127.0.0.1', '::1', '512', '{"dhcp-cl...
                                                             ^
DETAIL:  Expected ":", but found "}".
CONTEXT:  JSON data, line 1: {"dhcp-client"} at /opt/gondul/web/api/write/networks line 58, <STDIN> line 1.