json: cannot unmarshal array into Go value of type string

135 views
Skip to first unread message

Sinan Gabel

unread,
Sep 27, 2020, 11:46:33 AM9/27/20
to rqlite
BUG?


curl -XPOST 'localhost:4001/db/execute?pretty&timings' -H "Content-Type: application/json" -d '[ > ["INSERT INTO foo(name) VALUES(?)", "fiona"], > ["INSERT INTO foo(name) VALUES(?)", "sinead"] > ]' 

=> returns

json: cannot unmarshal array into Go value of type string

Philip O'Toole

unread,
Sep 27, 2020, 2:51:02 PM9/27/20
to rql...@googlegroups.com
What version are you running? You must be running 5.5.0 (or greater, which doesn't yet exist) for this to work.

--
You received this message because you are subscribed to the Google Groups "rqlite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rqlite+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rqlite/8357e493-3673-4fbb-8f04-4267347dcc61n%40googlegroups.com.

Sinan Gabel

unread,
Sep 27, 2020, 3:25:32 PM9/27/20
to rqlite
Great, thanks :)

I was running the previous version 5.4.2.

Reply all
Reply to author
Forward
0 new messages