{"record":{"id":"0b3ec4585822803c","repo":"krayin/laravel-crm","slug":"blocked-redirect-to-a-disallowed-webhook-endpoint","errorCode":null,"errorMessage":"Blocked redirect to a disallowed webhook endpoint.","messagePattern":"Blocked redirect to a disallowed webhook endpoint\\.","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"packages/Webkul/Automation/src/Services/WebhookService.php","lineNumber":34,"sourceCode":"\n    /**\n     * Create a new webhook service instance.\n     */\n    public function __construct(protected PersonRepository $personRepository)\n    {\n        $this->client = new Client([\n            'timeout' => 30,\n            'connect_timeout' => 10,\n            'verify' => true,\n            'http_errors' => false,\n            'allow_redirects' => [\n                'max' => 5,\n                'strict' => true,\n                'referer' => false,\n                'protocols' => ['http', 'https'],\n                'on_redirect' => function ($request, $response, $uri) {\n                    if (! $this->isSafeEndpoint((string) $uri)) {\n                        throw new \\RuntimeException('Blocked redirect to a disallowed webhook endpoint.');\n                    }\n                },\n            ],\n        ]);\n    }\n\n    /**\n     * Trigger the webhook.\n     */\n    public function triggerWebhook(mixed $data): array\n    {\n        if (\n            ! isset($data['method'])\n            || ! isset($data['end_point'])\n        ) {\n            return [\n                'status' => 'error',\n                'response' => 'Missing required fields: method or end_point',","sourceCodeStart":16,"sourceCodeEnd":52,"githubUrl":"https://github.com/krayin/laravel-crm/blob/13d6988cda8d69ece45ee1890effc90a7f21cdc1/packages/Webkul/Automation/src/Services/WebhookService.php#L16-L52","documentation":"Error \"Blocked redirect to a disallowed webhook endpoint.\" thrown in krayin/laravel-crm.","triggerScenarios":"Thrown at packages/Webkul/Automation/src/Services/WebhookService.php:34 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"13d6988cda8d69ece45ee1890effc90a7f21cdc1","analyzedAt":"2026-08-17T00:58:29.000Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}