{"record":{"id":"9134b6e17d3cfa1b","repo":"github/copilot-sdk","slug":"no-github-token-provider-registered-for-registrati","errorCode":null,"errorMessage":"No GitHub token provider registered for registration ID \"${params.registrationId}\"","messagePattern":"No GitHub token provider registered for registration ID \"(.+?)\"","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"nodejs/src/client.ts","lineNumber":867,"sourceCode":"                        await onGitHubTelemetry(notification);\n                    } catch {\n                        // Ignore handler errors\n                    }\n                },\n            };\n        }\n        handlers.gitHubToken = {\n            getToken: (params) => this.acquireGitHubToken(params),\n        };\n        this.clientGlobalHandlers = handlers;\n    }\n\n    private async acquireGitHubToken(\n        params: GitHubTokenAcquireRequest\n    ): Promise<GitHubTokenAcquireResult> {\n        const registration = this.githubTokenProviders.get(params.registrationId);\n        if (!registration) {\n            throw new Error(\n                `No GitHub token provider registered for registration ID \"${params.registrationId}\"`\n            );\n        }\n        return await registration.provider({\n            host: params.host,\n            sessionId: params.sessionId ?? registration.sessionId,\n            reason: params.reason,\n        });\n    }\n\n    private registerGitHubTokenProvider(\n        provider: GitHubTokenProvider | undefined,\n        sessionId?: string\n    ): string | undefined {\n        if (!provider) {\n            return undefined;\n        }\n        const registrationId = randomUUID();","sourceCodeStart":849,"sourceCodeEnd":885,"githubUrl":"https://github.com/github/copilot-sdk/blob/cd8cf15dc3f9e762615790aaed0a771a0f392755/nodejs/src/client.ts#L849-L885","documentation":"Token-acquisition callback dispatch failure: the runtime sent a gitHubToken/getToken request referencing a registrationId that the client has no registered provider for. The githubTokenProviders map lookup for that registration ID returned undefined, meaning the provider was never registered or was registered under a different ID.","triggerScenarios":"Thrown at nodejs/src/client.ts:867 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Register a token provider for that exact registrationId via the client's GitHub token provider registration API before the session requests it","Check for typos or casing mismatches between the registrationId used at registration time and the one the runtime sends","If the provider was unregistered during shutdown, ensure sessions using it are closed first"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"cd8cf15dc3f9e762615790aaed0a771a0f392755","analyzedAt":"2026-09-09T18:32:31.973Z","contentChangedAt":"2026-09-09T18:32:31.973Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}