create new virtual camera via API
AnsweredSystem: 'Server': 'Nx Witness/4.1.0.31398 (Network Optix) Apache/2.4.16 (MSWin)'
objective: create a new virutal Camera via /ec2/getCamerasEx and /ec2/saveCamera /api/downloads/{}... with success uploading the files
following topic Virtual-Camera-API-Calls-How-to-Import-Files-to-Camera-Archive-via-the-Server-API
api with python coming from camera-api-py.7z
here is the questions
1. POST http://192.168.0.189:7001/ec2/saveCamera with necessary json from getCamerasEx with replace the IDs always return Error 400
2. using existing virtual camera which is create manually then upload the xxx.mp4 with valid timestamp
which show Error 500
('PUT ', 'http://192.168.0.189:7001/api/downloads/w_2020-11-04_08_39_00/chunks/0')
('== Status: ', 500)
('== Headers:', {'Content-Length': '88', 'Keep-Alive': 'timeout=5', 'Server': 'Nx Witness/4.1.0.31946 (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': 'Wed, 04 Nov 2020 08:39:08 +0800', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json'})
('== Body:', u'{"error":"3","errorString":"DistributedFileDownloader returned error: fileDoesNotExist"}')
turned error: fileDoesNotExist"}')
it's step2 in "How to Import Files to Camera Archive via the Server API"
Step 2: Upload file
PUT /api/downloads/<name>/chunks/<chunkIndex> — uploads file chunk, just pass data in POST body. Errors are reported via http codes.
Example: /api/downloads/mynewfile/chunks/0
-
Hello lechee,Please, accept our apologies. The article you are referring contains misleading information.
We are going to fix it.
We'll update here when the article is corrected.0 -
Hello lechee,
The article has been updated. Please try again.
Let us know if you still need help.
0
Please sign in to leave a comment.
Comments
2 comments