1

error 7

Тема: error 7

hello,

when i excute this request i get error 7 !!

https://hst-api.wialon.com/wialon/ajax.html?svc=report/get_report_data&params={"itemId":1184262270,"col":[10]}&sid=09af3e8959ca95865c00eb55629b01e3
thank you

2

error 7

Re: error 7

Hello!

there is no item (recourse) with such id
in this request you need to specify resource id (itemId) where report created.
You can execute request core/search_items to find resource by name and in JSON response you will get resource id

Diana Cheley
Wialon Hosting Expert
Gurtam
3

error 7

Re: error 7

hello,
thnks for your response but i try to change the request and it display same error (error 7) .
you can see the attached file for more details

https://hst-api.wialon.com/wialon/ajax.html?svc=report/get_report_data&params={"itemId":17462927,"col":[10]}&sid=09729831df0f733857955f458e90f276

4

error 7

Re: error 7

iheb.balti пишет:

hello,
thnks for your response but i try to change the request and it display same error (error 7) .
you can see the attached file for more details

https://hst-api.wialon.com/wialon/ajax.html?svc=report/get_report_data&params={"itemId":17462927,"col":[10]}&sid=09729831df0f733857955f458e90f276

Hello!

this id doesn't belong to resource
Please specify request how you get itemID of required resource

Diana Cheley
Wialon Hosting Expert
Gurtam
5

error 7

Re: error 7

this is my request to get ItemId :

https://hst-api.wialon.com/wialon/ajax.html?svc=core/search_items&params={"spec":{"itemsType":"avl_unit","propName":"sys_id","propValueMask":"*","sortType":""},"force":1,"flags":1,"from":0,"to":10000}&sid=091714cdc06ded272549e3a9181e04fb
you find the response in attached file

6

error 7

Re: error 7

Hello!

in this request with such data format you will find units by their item ID in system.
But you need to find element avl_resource ( "itemsType":"avl_resource" )  (search by name - "propName":"sys_name", in "propValueMask" - resource name ) to get resource id and use it in request for report executing.

Diana Cheley
Wialon Hosting Expert
Gurtam