Format error

I have quite a lot of the following errors in my emoncms.log

2016-05-31 18:34:46.837|ERROR|input_controller.php|Format error, json value is not numeric

Looks like something is posting data that’s not formatted totally right??

Doesn’t seem to hurt anything though…
Can i find what is posting these errors? node number at least?

Greetings,
Bart

Could you give us some more info as to how and what you are posting to Emoncms?

Most of them are node-red instances at various locations posting with the emoncms node.
They are posting data this way:

return {payload: "Afvoertemp.:"+ msg.Tafvoer + "," + "Toevoertemp:" + msg.Ttoevoer + "," + "Retourtemp:" + msg.Tretour + "," + "Buitentemp:" + msg.Tbuiten};

I have one python script posting to my emoncms.

conn.request("GET", "/""input/post.json?apikey="+apikey2+"&node="+str(nodeid)+"&json={Boilertemp:"+str(Value1)+",AanvoerSTE:"+str(Value2)+",RetourSTE$
response = conn.getresponse()

Maybe a format error in my python script line?

Can i find out what ip the error’s are coming from?

Thx!

I am having the same errors come up in my log running emoncms on ubuntu 16.04

I am posting from an EmonPi on a local network ie EmonPi has direct access to the emoncms server.

I seem to getting all the feeds ok so not sure if this is a real problem or not.

#Errors on Emoncms server:

#EmonPi Details:
Emoncms Version low-write 9.8.0 | 2017.02.01
Modules admin app backup config dashboard eventp feed graph input postprocess process schedule time user vis wifi
Buffer 0 feed points pending write
Writer Daemon is running with sleep 60s
Server OS Linux 4.4.26-v7+
Host emonpi emonpi (127.0.1.1)
Date 2017-02-09 20:40:02 UTC
Uptime 20:40:02 up 1 day, 5:37, 0 users, load average: 0.04, 0.06, 0.08
HTTP Server Apache/2.4.10 (Raspbian) HTTP/1.1 CGI/1.1 80
Database Version MySQL 5.5.52-0+deb8u1
Host localhost (127.0.0.1)
Date 2017-02-09 20:40:02 (UTC 00:00‌​)
Stats Uptime: 106644 Threads: 1 Questions: 36497 Slow queries: 0 Opens: 57 Flush tables: 1 Open tables: 50 Queries per second avg: 0.342
Redis Version 2.8.17
Host localhost:6379 (127.0.0.1)
Size 39 keys (517.66K)Flush
Uptime 1 days
MQTT Version 1.4.10
Host localhost:1883 (127.0.0.1)
Pi CPU Temp 31.10°CShutdownReboot
Release emonSD-07Nov16

#EmonHub Config:

[[my-emoncms-server]]
Type = EmonHubEmoncmsHTTPInterfacer
[[[init_settings]]]
[[[runtimesettings]]]
    pubchannels = ToRFM12
    subchannels = ToEmonCMS,
    url = http://emoncms.averysradnage.co.uk              #local url for the server
    apikey = fb41f5634c28bbafca6ec81e75109f4d
    senddata = 1                    # my-awesome-emoncms-server
    sendstatus = 0                  # Enable sending WAN IP to Emoncms MyIP (requires My IP installed)
    sendinterval= 3                # Bulk send interval to post in seconds'

Looks to be being generated by the EmonPi, found this in the EmonHub Log:

2017-02-09 20:17:03,180 INFO     my-emoncms-server sending: http://emoncms.averysradnage.co.uk/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[]&sentat=1486671423
2017-02-09 20:17:03,212 WARNING  my-emoncms-server send failure: wanted 'ok' but got 'Error: Format error, json string supplied is not valid

A little while later:

2017-02-09 20:17:06,230 INFO     my-emoncms-server sending: http://emoncms.averysradnage.co.uk/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1486671424.3045,5,303,-27,276,243.06,0,0,0,0,0,0,0]]&sentat=1486671426
2017-02-09 20:17:06,292 DEBUG    my-emoncms-server acknowledged receipt with 'ok' from http://emoncms.averysradnage.co.uk

???

By default the “emonpi” variant of emonhub sends every 30secs whether there is data or not, the empty data-[] should not be sent and emoncms could be a little more informative and say it has received no data rather than it was not valid. But as annoying as it is, it will not cause you a problem as it is not a “fault” per se.

I see you have altered the send interval to 3secs so you will see more occurances than most users.

Thanks for feedback.

Didn’t think there was a problem as it seems to be working fine.

I have since moved to 10 seconds as per recommendations .

I’m seeing this error too.

Emoncms Version 9.3 | 2015.12.30

My log file is now 57Mb and there must be thousands of lines like this:

2017-05-12 04:03:47.906|ERROR|input_controller.php|Format error, json string supplied is not valid
2017-05-12 04:04:18.132|ERROR|input_controller.php|Format error, bulk item needs at least 3 values