waerable api virtual camera always return 400 and 500 Error
Answeredfollowing the wareable-camera-py
('GET ', 'http://192.168.0.189:7001/ec2/getCamerasEx')
('POST ', 'http://192.168.0.189:7001/ec2/saveCamera')
('New Virtual Camera ID is ', {u'id': u'{690d2815-7df8-bcc3-a2c1-d0b6efa7c95b}'})
('POST ', 'http://192.168.0.189:7001/api/downloads/xxx_2020-10-30_14_35?size=40930816&chunkSize=40930816&md5=b8a33809a7a1b27c04de56ac8e85dbb7&ttl=86400000&upload=true')
('PUT ', 'http://192.168.0.189:7001/api/downloads/xxx_2020-10-30_14_35/chunks/0')
('== Status: ', 500)
('== Headers:', {'Content-Length': '88', 'Keep-Alive': 'timeout=5', 'Server': 'Nx Witness/4.1.0.31398 (Network Optix) Apache/2.4.16 (MSWin)', 'Connection': 'Keep-Alive', 'Pragma': 'no-cache', 'Cache-Control': 'post-check=0, pre-check=0, no-store, no-cache, must-revalidate, max-age=0', 'Date': 'Fri, 30 Oct 2020 14:35:07 +0800', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json'})
('GET ', 'http://192.168.0.189:7001/api/downloads/xxx_2020-10-30_14_35/status')
('== Status: ', 400)
('== Headers:', {'Content-Length': '86', 'Keep-Alive': 'timeout=5', 'Server': 'Nx Witness/4.1.0.31398 (Network Optix) Apache/2.4.16 (MSWin)', 'Connection': 'Keep-Alive', 'Pragma': 'no-cache', 'Cache-Control': 'post-check=0, pre-check=0, no-store, no-cache, must-revalidate, max-age=0', 'Date': 'Fri, 30 Oct 2020 14:35:07 +0800', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json'})
('== Body:', u'{"error":"3","errorString":"handleStatus(xxx_2020-10-30_14_35): file does not exist."}')
('POST ', u'http://192.168.0.189:7001/api/wearableCamera/lock?cameraId=690d2815-7df8-bcc3-a2c1-d0b6efa7c95b&userId=99cbc888-539b-4bfe-856f-799b45b69b1e&ttl=300000')
('Camera lock token ', u'{eb9df3ef-608b-4725-9071-a24697e3c81a}')
('POST ', u'http://192.168.0.189:7001/api/wearableCamera/consume?cameraId=690d2815-7df8-bcc3-a2c1-d0b6efa7c95b&token=eb9df3ef-608b-4725-9071-a24697e3c81a&uploadId=xxx_2020-10-30_14_35&startTime=1603953303000')
('POST ', u'http://192.168.0.189:7001/api/wearableCamera/extend?cameraId=690d2815-7df8-bcc3-a2c1-d0b6efa7c95b&userId=99cbc888-539b-4bfe-856f-799b45b69b1e&ttl=300000&token=eb9df3ef-608b-4725-9071-a24697e3c81a')
('POST ', u'http://192.168.0.189:7001/api/wearableCamera/release?cameraId=690d2815-7df8-bcc3-a2c1-d0b6efa7c95b&token=eb9df3ef-608b-4725-9071-a24697e3c81a')
-
Hello lechee,
Could you please give us more details on what are you trying to achieve?
What is your objective and what does not go as you expect it should?
Here is a good reference on how to make things clear
https://support.networkoptix.com/hc/en-us/community/posts/360039290494-How-to-submit-a-support-request- -
Solution can be found here
Please sign in to leave a comment.
Comments
4 comments