Bulk Upload Error

Hello,

why did this not work:

http://www.domain.com/emoncms/input/bulk.json?data=[[-2313,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2309,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2305,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2301,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2297,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2293,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2289,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2285,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2281,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2277,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2273,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2269,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2265,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2261,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2257,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2253,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2249,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2245,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2241,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2237,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2233,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2229,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2225,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2221,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2217,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2213,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2209,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2205,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2201,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2197,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2193,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2189,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2185,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2181,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2177,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2173,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2169,8,null,547.0,null,null,null,15.0,null,null,null,null]]&time=1459154173&apikey=xxx

 

but this work (just remove some values):

http://www.domain.com/emoncms/input/bulk.json?data=[[-2313,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2309,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2305,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2173,8,null,547.0,null,null,null,15.0,null,null,null,null],[-2169,8,null,547.0,null,null,null,15.0,null,null,null,null]]&time=1459154173&apikey=xxx

 

Is there a limit?

 

I use Version 9.31 | 2016.02.13

 

Thank you!

unique24's picture

Re: Bulk Upload Error

Hello,

 

I tryied step by step and I can max 16 arrays in the json.

If I want upload 17, I get:

Error: Format error, json string supplied is not valid
 

pb66's picture

Re: Bulk Upload Error

Have you tried using the method used by emonhub? emonhub gives each packet a full timestamp and uses "sentat=" not "time=". I know this has worked fine with 250 packets in the past.

Paul

PS maybe linked to "Bulk data max upload size"

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.