1

Create user error:4

Тема: Create user error:4

Hi
I ger error 4 with request by this link:

https://hst-api.wialon.com/wialon/ajax.html?svc=core/create_user&params={"creatorId":21378441,"name":"test412344","password":"test1234","dataFlag":1}&sid=313588a604f4985407b2e4d9bbc2723c

could you help me what is wrong?

2

Create user error:4

Re: Create user error:4

Hello!

The problem seems like with double quotes - no correct encoded. For example, if this request opened in browser, instead double quotes or %22 (ASCII Encoding)  it's showed symbol \ - \creatorId\:21378441,\name\:\test412344\  and etc.

Diana Cheley
Wialon Hosting Expert
Gurtam
3

Create user error:4

Re: Create user error:4

Thanks.




could you help me with this code:
spec = {
            'itemsType': 'avl_unit_group',
            'propName': 'sys_name',
            'propValueMask': 'Falck',
            'sortType': 'sys_name' }
            interval = {"from": 0, "to": 0}
            dunits = wialon_api.core_search_items(spec=spec, force=1, flags=flags.ITEM_DATAFLAG_BASE, **interval)
            u=dunits['items'][0]['u']
            u=u+[unitid]
            unitg= wialon_api.unit_group_update_units(itemId=19391894, units=u)


I get this error:
WialonError(Invalid service unit_group_update_units (2))