Skip to content

Received non-success status 403: Forbidden when Setting The Photo Output to RAW on GOPRO Hero 12 #840

@Jenanaputra

Description

@Jenanaputra

Hi every one, I am using Gopro Hero 12 Black. I tried to take the photo using the code. Before taking photo, I want to set the photo output to be RAW. This is mine to initialize the gopro setting:

async def init_gopro(self):
        try:
            console.print("[bold green]Connecting to GoPro...[/bold green]")
            self.gopro = await WiredGoPro().__aenter__()
            assert (await self.gopro.http_command.load_preset_group(
                group=proto.EnumPresetGroup.PRESET_GROUP_ID_PHOTO)).ok
            console.print("[bold cyan]GoPro ready for capturing photos[/bold cyan]")     

            await self.gopro.http_setting.photo_lens.set(constants.settings.PhotoLens.LINEAR)
            console.print("[bold cyan]Gopro lens set up for Linear[/bold cyan]")    
            await asyncio.sleep(15)
            # await self.gopro.http_setting.photo_output.set(constants.settings.PhotoOutput.STANDARD)
            # console.print("[bold cyan]Gopro output is set up to standard[/bold cyan]")      
            # await asyncio.sleep(15)            
        except Exception as e:
            self.get_logger().error(f"Failed to connect to GoPro: {e}")

After I run the code , i got this log :

Image

Does anyone know about this and solve this issue? Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageNeeds to be reviewed and assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions