1

error execute report templateRemote api

Topic: error execute report templateRemote api

Hello, I try to run a report from my app, just like they do in the eco driving app, but generating the report template gives me error 4

this is the example from eco driving app. Obtained from browser debugger

{"reportResourceId":183747,"reportTemplateId":0,"reportObjectId":"183756","reportObjectSecId":0,"interval":{"flags":0,"from":1481263200,"to":1481349599},"reportTemplate":{"n":"EcoDriving report","ct":"avl_unit","p":"","tbl":[{"n":"unit_ecodriving","l":"Driving behavior","f":2097424,"c":"time_begin,time_end,violation_name,violation_value,max_speed,violation_mark,violations_count,violation_rank","cl":"Beginning,End,Violation name,Value,Max speed,Mark,Violation count,Violation rank","sl":"","s":"","p":"{\"grouping\":\"{\\\"type\\\":\\\"trip_id\\\"}\",\"duration_format\":\"0\",\"geozones_ex\":\"{\\\"split\\\":0}\"}","sch":{"y":0,"m":0,"w":0,"f1":0,"f2":0,"t1":0,"t2":0}},{"n":"unit_trips","l":"Trips","f":16,"c":"time_begin,time_end,duration,mileage","cl":"Beginning,End,Duration,Mileage","sl":"","s":"","p":"{\"unfinished_ival\":0,\"base_eh_sensor\":{\"mask\":\"*\"},\"sensor_name\":\"*\",\"duration_format\":\"0\"}","sch":{"y":0,"m":0,"w":0,"f1":0,"f2":0,"t1":0,"t2":0}},{"n":"unit_stats","l":"Statistics","f":0,"c":"","cl":"","s":"us_units","sl":"","p":"{\"us_units\":0}","sch":{"y":0,"m":0,"w":0,"f1":0,"f2":0,"t1":0,"t2":0}}]}}}

this is my request. The columns values obtained in brower debugger from wialon web site.

{"reportResourceId":23125,"reportTemplateId":0,"reportObjectId":"13846903","reportObjectSecId":0,"interval":{"flags":0,"from":1481608800,"to":1481695199},"reportTemplate":{"n":"Dispatch Fuel","ct":"avl_unit","p":"","tbl":[{"n":"unit_engine_hours","l":"Fuel","f":2097424,"c":"time_begin,time_end,trailer,fuel_consumption_imp,fuel_consumption_ins","cl":"Beginning,End,Trailer,By Impulse,By Instant","sl":"","s":"","p":"{\"grouping\":\"{\\\"type\\\":\\\"day\\\"}\",\"duration_format\":\"0\"}","sch":{"y":0,"m":0,"w":0,"f1":0,"f2":0,"t1":0,"t2":0}}]}}

I do not understand why it does not work.
If I run a report on one of my resources I have no problem. But if I try to do it or generate the template I get error 4

2

error execute report templateRemote api

Re: error execute report templateRemote api

fixed update the version of sdk