influxdb icon indicating copy to clipboard operation
influxdb copied to clipboard

influxdb json ,malformed JSON string, neither tag

Open leyifoxit opened this issue 2 years ago • 2 comments

CurlHeadersOnly: curl output: 'Time: 20.000519 DNS time: 0.004396 Redirect time: 0.000000', result: 19.996123 CurlHeadersOnly: WARNING: curl exited with status 28 on www.facebook.com CurlHeadersOnly: twitter.com: got 19.995702 19.996234 19.998087 CurlHeadersOnly: bbc.co.uk: timeout (61 s) reached, killing the probe. CurlHeadersOnly: steamcommunity.com: timeout (61 s) reached, killing the probe. CurlHeadersOnly: www.google.com: timeout (61 s) reached, killing the probe. CurlHeadersOnly: www.facebook.com: timeout (61 s) reached, killing the probe. Calling RRDs::update(/data/USA/Sun.rrd --template uptime:loss:median:ping1:ping2:ping3 1678993614:U:3:U:U:U:U) Error inserting measurement into influxdb: Error executing write: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "Can't connect to 10....") at /opt/smokeping-2.7.3/lib/InfluxDB/HTTP.pm line 161. for $VAR1 = [ 'CurlHeadersOnly,host=www.oracle.com/us/sun,loss=3,loss_percent=100,path=/USA/Sun,slave=master,title=Sun\ Microsystems\ Webserver loss=3i,loss_percent=100i 1678993614000' ]; Calling RRDs::update(/data/USA/MIT.rrd --template uptime:loss:median:ping1:ping2:ping3 1678993614:U:0:0.859713:0.836377:0.859713:1.106108) Error inserting measurement into influxdb: Error executing write: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "Can't connect to 10....") at /opt/smokeping-2.7.3/lib/InfluxDB/HTTP.pm line 161. for $VAR1 = [ 'CurlHeadersOnly,host=web.mit.edu,loss=0,loss_percent=0,path=/USA/MIT,slave=master,title=Massachusetts\ Institute\ of\ Technology\ Webserver loss=0i,loss_percent=0i,max=1.106108e+00,median=8.597130e-01,min=8.363770e-01,ping1=8.363770e-01,ping2=8.597130e-01,ping3=1.106108e+00 1678993614000' ]; Calling RRDs::update(/data/Gaming/SteamCommunity.rrd --template uptime:loss:median:ping1:ping2:ping3 1678993614:U:3:U:U:U:U) Error inserting measurement into influxdb: Error executing write: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "Can't connect to 10....") at /opt/smokeping-2.7.3/lib/InfluxDB/HTTP.pm line 161. for $VAR1 = [ 'CurlHeadersOnly,host=steamcommunity.com,loss=3,loss_percent=100,path=/Gaming/SteamCommunity,slave=master,title=steamcommunity.com\ HTTP\ Latency loss=3i,loss_percent=100i 1678993614000' ]; Calling RRDs::update(/data/Gaming/Steam.rrd --template uptime:loss:median:ping1:ping2:ping3 1678993614:U:0:0.0904:0.006143:0.0904:0.094354) Error inserting measurement into influxdb: Error executing write: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "Can't connect to 10....") at /opt/smokeping-2.7.3/lib/InfluxDB/HTTP.pm line 161.

malformed JSON string, neither tag ?

leyifoxit avatar Mar 16 '23 19:03 leyifoxit

docker smokeping : madady/smokeping-influx:latest docker : influxdb:1.8 image

leyifoxit avatar Mar 16 '23 19:03 leyifoxit

I'm also running into this problem with smokeping. Looks a bit like smokeping or the influx client package is expecting a JSON reply, but instead is getting an error, looking at: before "Can't connect to 10....", I think that's what it is seeing where it expects a JSON reply.

In my case, the problem was the port number was wrong. Fixing that removed this error (but still gave me another non-descript error and then I gave up, so I did not actually make smokeping work with influx).

matthijskooijman avatar Feb 15 '24 21:02 matthijskooijman