Skip to content

[Bug]: Webhook configuration not found #215

@ADSYSAMA

Description

@ADSYSAMA

Reproducer

No response

Description

Hi,

I'm trying webhook configuration but it keep saying configuration not found, there is my code and yaml configuration :

public function gotenbergSymfonyBundleGenerateTwigAsyncPdf(GotenbergPdfInterface $gotenberg): Response
    {
        $this->stopwatch->start('webhook_generate_pdf', 'PDF');

        $pdf = $gotenberg->html()
            ->webhookConfiguration('webhook_pdf_config')
            ->skipNetworkIdleEvent()
            ->content('pdf/gotenberg-template.html.twig')
            ->fileName('webhook_generated');

        $pdf->generateAsync();

        $this->stopwatch->stop('webhook_generate_pdf');

        return new Response('Votre pdf est en cours de création');
    }

sensiolabs_gotenberg.yaml

sensiolabs_gotenberg:
  assets_directory: 'public'
  http_client: 'gotenberg.client'
  webhook:
    webhook_pdf_config:
      success:
        url: "http://host.docker.internal:8500/gotenberg-bundle-webhook-success"
      error:
        url: "http://host.docker.internal:8500/gotenberg-bundle-webhook-error"

I guess i'm missing something obvious.

Gotenberg Version

8.25.0

Gotenberg Bundle Version

1.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions