firmwaremanagement.cgi upgrade not working #526
-
Below is the python code I have written to upgrade AXIS cameras. However, this is only working on SOME cameras and others it is not working. Anyone have some ideas on why it is working for some cameras and not others? I noticed the working cameras have a supported API version of 1.0 and the cameras that it is not working for have a supported API version of 1.4. WORKING scenario - This code does work when upgrading a Q6155 camera from version 8.40.4.2 to version 8.40.31. Camera's supported API version is 1.0 When I try upgrading the M3085-V camera, I get the following error: <title>401 Unauthorized</title>UnauthorizedThis server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required. PYTHON SCRIPT: url = "http://CAMERAIPADDRESS/axis-cgi/firmwaremanagement.cgi" headers = {} Add HTTP Digest Authentication with username and passwordauth = HTTPDigestAuth('username', 'password') response = requests.post(url, headers=headers, data=payload, files=files, auth=auth) print(response.text) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
This automatically generated reply acts as a friendly reminder. Answers to your questions will most often come from the community, from developers like yourself. You will, from time to time, find that Axis employees answers some of the questions, but this is not a guarantee. Think of the discussion forum as a complement to other support channels, not a replacement to any of them. If your question remains unanswered for a period of time, please revisit it to see whether it can be improved by following the guidelines listed in Axis support guidelines. |
Beta Was this translation helpful? Give feedback.
-
Hi @lwalshbnsf , |
Beta Was this translation helpful? Give feedback.
-
@vivekatoffice Yes, I did try that solution first and it doesn't work either. However, I was able to come up with a fix. It really comes down to retrieving and re-using the correct nonce, cnonce, realm, and noncecount within the authorization headers. That is what fixed it for me. |
Beta Was this translation helpful? Give feedback.
@vivekatoffice Yes, I did try that solution first and it doesn't work either.
However, I was able to come up with a fix. It really comes down to retrieving and re-using the correct nonce, cnonce, realm, and noncecount within the authorization headers. That is what fixed it for me.