This object is in archive! 

API request action returns timeout error but works

Henrik Andersson shared this question 5 years ago
Need Answer

Hi,

I am creating a Python script to use the Zipabox API (https://my.zipato.com:443/zipato-web/v2). It works and I can logon, list devices and endpoints etc. But when I try to execute an action I get a timeout error even-though the call works! The device changes status and the Zipabox web interface shows the updated value. What can be the problem?

Pyton request:


url = 'https://my.zipato.com:443/zipato-web/v2' 
h = {'Content-Type': 'application/json; charset=utf-8'}
p = "{\"value\": \"0\"}"
r = s.post(url+'/clusterEndpoints/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/actions/setValue', headers=h, data=p)

Response:

{'success': False, 'error': 'TIMEOUT', 'transactionId': 'XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'}
(I have masked the GUIDs)

What can be the issue here?

br

Henrik

Leave a Comment
 
Attach a file