Open geeky01adarsh opened 7 months ago
Any update on this?
I also work with multiple VSCode instances. The login workflow works for the first instance opened, but once the second one is opened I get the following error: Failed logging in to Codiumate: unable to get issuer certificate
Error from codium-ai output:
["ERROR" - 2:41:18 PM] auth_service.ts:login error
{
"error": {
"message": "unable to get issuer certificate",
"name": "Error",
"stack": "Error: unable to get issuer certificate\n\tat rA.from (/Users/username/.vscode/extensions/codium.codium-0.8.5/dist/extension.js:2:4804503)\n\tat h.<anonymous> (/Users/username/.vscode/extensions/codium.codium-0.8.5/dist/extension.js:2:4826760)\n\tat h.emit (node:events:529:35)\n\tat l.forEach.u.<computed> (/Users/username/.vscode/extensions/codium.codium-0.8.5/dist/extension.js:2:490838)\n\tat ClientRequest.emit (node:events:529:35)\n\tat TLSSocket.socketErrorListener (node:_http_client:501:9)\n\tat TLSSocket.emit (node:events:517:28)\n\tat emitErrorNT (node:internal/streams/destroy:151:8)\n\tat emitErrorCloseNT (node:internal/streams/destroy:116:3)\n\tat process.processTicksAndRejections (node:internal/process/task_queues:82:21)\nError: Axios Better Stacktrace\n\tat n.forEach.A.<computed> [as post] (/Users/username/.vscode/extensions/codium.codium-0.8.5/dist/extension.js:2:4797823)\n\tat e.default.getCustomToken (/Users/username/.vscode/extensions/codium.codium-0.8.5/dist/extension.js:2:849649)\n\tat e.default.getAccessToken (/Users/username/.vscode/extensions/codium.codium-0.8.5/dist/extension.js:2:849554)\n\tat process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n\tat async e.default.loginIfPreviouslyLoggedIn (/Users/username/.vscode/extensions/codium.codium-0.8.5/dist/extension.js:2:849349)\n\tat async D.login (/Users/username/.vscode/extensions/codium.codium-0.8.5/dist/extension.js:2:853959)\n\tat async a.login (/Users/username/.vscode/extensions/codium.codium-0.8.5/dist/extension.js:2:858878)",
"config": {
"transitional": {
"silentJSONParsing": true,
"forcedJSONParsing": true,
"clarifyTimeoutError": false
},
"adapter": [
"xhr",
"http"
],
"transformRequest": [
null
],
"transformResponse": [
null
],
"timeout": 8000,
"xsrfCookieName": "XSRF-TOKEN",
"xsrfHeaderName": "X-XSRF-TOKEN",
"maxContentLength": -1,
"maxBodyLength": -1,
"env": {},
"headers": {
"Accept": "application/json",
"Content-Type": "application/json",
"User-Agent": "axios/1.6.2",
"Content-Length": "1416",
"Accept-Encoding": "gzip, compress, deflate, br"
},
"method": "post",
"url": "https://proxy.codium.ai/v1/auth/create_custom_token",
"data": "{\"id_token\":\"token-removed-from-here\"}"
},
"code": "UNABLE_TO_GET_ISSUER_CERT",
"status": null
}
}
After this error, the login doesn't work anymore even when using a single vscode instance.
VSCode 1.88.1 on MacOS 13.6.5
It only works with the first instance of VS Code and when it tries closing the first instance, it doesn't get automatically activated for others.