OpenGoPro icon indicating copy to clipboard operation
OpenGoPro copied to clipboard

Updating Hero12 resolution settings over USB yields HTTP 403.

Open mmarich opened this issue 6 months ago • 8 comments

Component HTTP API (USB)

Describe the bug Attempting to set the video resolution (the same issue occurs when attempting to set the video frame rate) results in a HTTP 403 error. The same error occurs with or without the command to enable wired control.

To Reproduce Connect to camera via USB, and execute the following CURL commands as per the OpenGoPro documentation:

user@device % curl -v --request GET --url 'http://172.25.110.51:8080/gopro/camera/control/wired_usb?p=1'
Note: Unnecessary use of -X or --request, GET is already inferred.
*   Trying 172.25.110.51:8080...
* Connected to 172.25.110.51 (172.25.110.51) port 8080
> GET /gopro/camera/control/wired_usb?p=1 HTTP/1.1
> Host: 172.25.110.51:8080
> User-Agent: curl/8.4.0
> Accept: */*
> 
< HTTP/1.1 200 OK
< Content-Type: application/json
< Content-Length: 3
< 
{}
* Connection #0 to host 172.25.110.51 left intact

user@device % curl -v --request GET --url 'http://172.25.110.51:8080/gopro/camera/setting?setting=2&option=9'
Note: Unnecessary use of -X or --request, GET is already inferred.
*   Trying 172.25.110.51:8080...
* Connected to 172.25.110.51 (172.25.110.51) port 8080
> GET /gopro/camera/setting?setting=2&option=9 HTTP/1.1
> Host: 172.25.110.51:8080
> User-Agent: curl/8.4.0
> Accept: */*
> 
< HTTP/1.1 403 Forbidden
< Content-Type: application/json
< Content-Length: 77
< 
{
    "error": 1,
    "option_id": 9,
    "setting_id": 2,
    "available_options": []
}
* Connection #0 to host 172.25.110.51 left intact

Expected behavior The video resolution is updated. In this case, the requested resolution is for 1080p, although other resolutions supported by the Hero12 also fail.

Hardware

  • Camera: Hero12
  • Version: 2.20

mmarich avatar Aug 18 '24 19:08 mmarich