{"record":{"id":"abcf24b6a6c5db6e","repo":"coollabsio/coolify","slug":"failed-to-fetch-github-app-permissions-response","errorCode":null,"errorMessage":"Failed to fetch GitHub app permissions: {$response->body()}","messagePattern":"Failed to fetch GitHub app permissions: (.+?)","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"app/Jobs/GithubAppPermissionJob.php","lineNumber":38,"sourceCode":"    public function backoff(): int\n    {\n        return isDev() ? 1 : 3;\n    }\n\n    public function __construct(public GithubApp $github_app) {}\n\n    public function handle()\n    {\n        try {\n            $github_access_token = generateGithubJwt($this->github_app);\n\n            $response = Http::withHeaders([\n                'Authorization' => \"Bearer $github_access_token\",\n                'Accept' => 'application/vnd.github+json',\n            ])->get(\"{$this->github_app->api_url}/app\");\n\n            if (! $response->successful()) {\n                throw new \\RuntimeException('Failed to fetch GitHub app permissions: '.$response->body());\n            }\n\n            $response = $response->json();\n            $permissions = data_get($response, 'permissions');\n\n            $this->github_app->contents = data_get($permissions, 'contents');\n            $this->github_app->metadata = data_get($permissions, 'metadata');\n            $this->github_app->pull_requests = data_get($permissions, 'pull_requests');\n            $this->github_app->administration = data_get($permissions, 'administration');\n\n            $this->github_app->save();\n            $this->github_app->makeVisible('client_secret')->makeVisible('webhook_secret');\n\n        } catch (\\Throwable $e) {\n            send_internal_notification('GithubAppPermissionJob failed with: '.$e->getMessage());\n            throw $e;\n        }\n    }","sourceCodeStart":20,"sourceCodeEnd":56,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Jobs/GithubAppPermissionJob.php#L20-L56","documentation":"Error \"Failed to fetch GitHub app permissions: {$response->body()}\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Jobs/GithubAppPermissionJob.php:38 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":"70b9acc42467278373e00de77abb40684e25b395","analyzedAt":"2026-08-17T01:41:01.313Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}