-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined is not an object (evaluating 'json.choices[0]') #9
Comments
Check that you actually have enough credits. The free credit that you get expires pretty quickly so you may not have any credit left. |
I have the same issue and have a paid account. |
Line 46: Cannot read properties of undefined (reading '0') it is better to make the complete file and make a complete video to set up the file. |
how to Fix the Error / issue |
Did anyone find the solution to this problem? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have downloaded the XelPlus ASK AI in EXCEL.xlsx file, and copied the ts script into the Code Editor. I have replaced the Initial "button" with a new button linked to the Open AI in Excel script. I have established an API, and have copied it to cell B1 on the "API" tab. I have entered "Who won the 1985 World Series?" into cell B2 on the "Prompt" tab. When I run the code, I get the error "undefined is not an object (evaluating 'json.choices[0]'). I have added a console.log statement to write out json() following the "await response.json()" statement. The output appears to be blank.
The text was updated successfully, but these errors were encountered: