1

Ошибка 4

Topic: Ошибка 4

На днях опять отвалились дин.отчёты. Причём, не все, а только один, шаблон которого не менялся. Можете сказать, что вы опять меняли? У меня опять вронг_парамс, ошибка 4.
Я не понимаю, что не так, я уже всё проверил.

?sid=47564364353456437586435438&params={"reportResourceId":"17140224","reportTemplateId":"0","reportObjectId":"23471701","reportObjectSecId":"0","interval":{"from":"1625979000","to":"1625989200","flags":"0"},"reportTemplate":{"id":"0","n":"","ct":"avl_unit","p":"{%5C%22descr%5C%22:%5C%22%5C%22,%5C%22bind%5C%22:{%5C%22avl_unit%5C%22:[]}}","tbl":[{"n":"unit_stats","l":"Статистика","c":"","cl":"","cp":"","s":"[%5C%22address_format%5C%22,%5C%22time_format%5C%22,%5C%22us_units%5C%22]","sl":"[%5C%22Address%5C%22,%5C%22Time Format%5C%22,%5C%22Measure%5C%22]","filter_order":[""],"p":"{%5C%22address_format%5C%22:%5C%221255211008_10_5%5C%22,%5C%22time_format%5C%22:%5C%22%Y-%m-%E_%H:%M:%S%5C%22,%5C%22us_units%5C%22:0}","sch":{"f1":"0","f2":"0","t1":"0","t2":"0","m":"0","y":"0","w":"0","fl":"0"},"f":"0"},{"n":"unit_trips","l":"Поездки","c":"[%5C%22time_begin%5C%22,%5C%22time_end%5C%22]","cl":"[%5C%22Начало%5C%22,%5C%22Конец%5C%22]","cp":"[{},{}]","s":"","sl":"","filter_order":["speed","duration","mileage","base_eh_sensor","engine_hours","stops","sensors","sensor_name","driver","trailer","geozones_ex"],"p":"{%5C%22speed%5C%22:{%5C%22min%5C%22:0,%5C%22max%5C%22:2,%5C%22split%5C%22:1}}","sch":{"f1":"0","f2":"0","t1":"0","t2":"0","m":"0","y":"0","w":"0","fl":"0"},"f":"0"}]}}&svc=report/exec_report
2

Ошибка 4

Re: Ошибка 4

Добрый день,

похоже какой-то парамтер (символ) не верно URL encoded в "reportTemplate"

Если например все параметры url encoded сделать, то запрос выходит  без ошибки wrong params

%22id%22%3A%220%22%2C%22n%22%3A%22%22%2C%22ct%22%3A%22avl_unit%22%2C%22p%22%3A%22%7B%255C%2522descr%255C%2522%3A%255C%2522%255C%2522%2C%255C%2522bind%255C%2522%3A%7B%255C%2522avl_unit%255C%2522%3A%5B%5D%7D%7D%22%2C%22tbl%22%3A%5B%7B%22n%22%3A%22unit_stats%22%2C%22l%22%3A%22%D0%A1%D1%82%D0%B0%D1%82%D0%B8%D1%81%D1%82%D0%B8%D0%BA%D0%B0%22%2C%22c%22%3A%22%22%2C%22cl%22%3A%22%22%2C%22cp%22%3A%22%22%2C%22s%22%3A%22%5B%255C%2522address_format%255C%2522%2C%255C%2522time_format%255C%2522%2C%255C%2522us_units%255C%2522%5D%22%2C%22sl%22%3A%22%5B%255C%2522Address%255C%2522%2C%255C%2522Time%20Format%255C%2522%2C%255C%2522Measure%255C%2522%5D%22%2C%22filter_order%22%3A%5B%22%22%5D%2C%22p%22%3A%22%7B%255C%2522address_format%255C%2522%3A%255C%25221255211008_10_5%255C%2522%2C%255C%2522time_format%255C%2522%3A%255C%2522%25Y-%25m-%25E_%25H%3A%25M%3A%25S%255C%2522%2C%255C%2522us_units%255C%2522%3A0%7D%22%2C%22sch%22%3A%7B%22f1%22%3A%220%22%2C%22f2%22%3A%220%22%2C%22t1%22%3A%220%22%2C%22t2%22%3A%220%22%2C%22m%22%3A%220%22%2C%22y%22%3A%220%22%2C%22w%22%3A%220%22%2C%22fl%22%3A%220%22%7D%2C%22f%22%3A%220%22%7D%2C%7B%22n%22%3A%22unit_trips%22%2C%22l%22%3A%22%D0%9F%D0%BE%D0%B5%D0%B7%D0%B4%D0%BA%D0%B8%22%2C%22c%22%3A%22%5B%255C%2522time_begin%255C%2522%2C%255C%2522time_end%255C%2522%5D%22%2C%22cl%22%3A%22%5B%255C%2522%D0%9D%D0%B0%D1%87%D0%B0%D0%BB%D0%BE%255C%2522%2C%255C%2522%D0%9A%D0%BE%D0%BD%D0%B5%D1%86%255C%2522%5D%22%2C%22cp%22%3A%22%5B%7B%7D%2C%7B%7D%5D%22%2C%22s%22%3A%22%22%2C%22sl%22%3A%22%22%2C%22filter_order%22%3A%5B%22speed%22%2C%22duration%22%2C%22mileage%22%2C%22base_eh_sensor%22%2C%22engine_hours%22%2C%22stops%22%2C%22sensors%22%2C%22sensor_name%22%2C%22driver%22%2C%22trailer%22%2C%22geozones_ex%22%5D%2C%22p%22%3A%22%7B%255C%2522speed%255C%2522%3A%7B%255C%2522min%255C%2522%3A0%2C%255C%2522max%255C%2522%3A2%2C%255C%2522split%255C%2522%3A1%7D%7D%22%2C%22sch%22%3A%7B%22f1%22%3A%220%22%2C%22f2%22%3A%220%22%2C%22t1%22%3A%220%22%2C%22t2%22%3A%220%22%2C%22m%22%3A%220%22%2C%22y%22%3A%220%22%2C%22w%22%3A%220%22%2C%22fl%22%3A%220%22%7D%2C%22f%22%3A%220%22%7D%5D
Diana Cheley
Wialon Hosting Expert
Gurtam