Skip to content
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

Open
frewdr opened this issue May 9, 2023 · 5 comments
Open

undefined is not an object (evaluating 'json.choices[0]') #9

frewdr opened this issue May 9, 2023 · 5 comments

Comments

@frewdr
Copy link

frewdr commented May 9, 2023

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.

@ZQueue
Copy link

ZQueue commented May 11, 2023

Check that you actually have enough credits. The free credit that you get expires pretty quickly so you may not have any credit left.

@KenB1956
Copy link

I have the same issue and have a paid account.

@bahattab
Copy link

bahattab commented Jul 25, 2023

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.

@manofprogramme
Copy link

how to Fix the Error / issue

@sohagdev
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants
@bahattab @ZQueue @sohagdev @KenB1956 @frewdr @manofprogramme and others