rubberduck-ai / rubberduck-vscode

Use AI-powered code edits, explanations, code generation, error diagnosis, and chat in Visual Studio Code with the official OpenAI API.
https://marketplace.visualstudio.com/items?itemName=Rubberduck.rubberduck-vscode
MIT License
582 stars 70 forks source link

Error: Cannot read properties of undefined (reading 'message') #32

Closed RatoGBM closed 1 year ago

RatoGBM commented 1 year ago
Screenshot 2023-02-11 at 22 40 41

I entered my API key, but it doesn't work.

Sorry if I sound like a total newbie (which I am), but I really have no expertise in solving this kind of problems, so pls help.

Thanks.

lgrammel commented 1 year ago

Thanks for reporting the bug! I'll take a look.

lgrammel commented 1 year ago

v1.8.4 should show the full error message from OpenAI now. I suspect there is something wrong with the API key that you entered (maybe it's out of quota, or there was a typo and it's invalid).

lgrammel commented 1 year ago

@all-contributors please add @RatoGBM for bug report

allcontributors[bot] commented 1 year ago

@lgrammel

I've put up a pull request to add @RatoGBM! :tada:

RatoGBM commented 1 year ago

It displayed the whole error message, it was out of quota. Thank you anyway