OpenGoPro icon indicating copy to clipboard operation
OpenGoPro copied to clipboard

"400 Bad request" when calling /media/info with USB connection

Open SebastianSchoeps opened this issue 3 years ago • 0 comments

Component What is the bug in? USB API

Describe the bug I get a "400 Bad request" when calling /media/info?path=100GOPRO/GX010012.MP4 with USB connection

To Reproduce Steps to reproduce the behavior:

  1. Connect GoPro with USB
  2. Call GET /media/list --> works
{
    "id": "2087...",
    "media": [
        {
            "d": "100GOPRO",
            "fs": [
                {
                    "n": "GX010012.MP4",
                    "cre": "1644663618",
                    "mod": "1644663618",
                    "glrv": "276391386",
                    "ls": "-1",
                    "s": "4004385314"
                },
            ]
        }
    ]
}

Call GET /media/info?path=100GOPRO/GX010012.MP4 --> 400 Bad Request

Expected behavior Media info according to https://gopro.github.io/OpenGoPro/http_2_0#commands-quick-reference

Hardware Hero 10 Black

Additional context Hey, I started playing around with the API and a new GoPro and was very happy how quick this started to work with USB. However, I cannot get the media info to work. Is this supposed to work with USB?

Thanks, Sebastian

SebastianSchoeps avatar Feb 13 '22 16:02 SebastianSchoeps