mpociot / chatgpt-vscode

A VSCode extension that allows you to use ChatGPT
4.99k stars 365 forks source link

Auth Error: ChatGPT error 401 #48

Open shayanb opened 1 year ago

shayanb commented 1 year ago

Following the README guide, I get this error message when trying to use the token:

[ERROR] Error: ChatGPT error 401: {
"error": {
"message": "Could not parse your authentication token. Please try signing in again.",
"type": "invalid_request_error",
"param": null,
"code": "invalid_jwt"
}
}

I also tried generating an official API token but got the same error.

shayanb commented 1 year ago

Seems that using the Official API tokens works but got the error that I exceeded my quota, so need to look into that later. let me know if you have any ideas why this is failing