Continue Discussion 10 replies
July 2023

jcwright04

In the “Creating our first controller” section. I seem to be getting hung up here:

const response = await getResponse(newSession, newSession.initialPrompt);

getResponse never actually returns anything, I never make it to the next line which is

response.sessionId = sessionId;
1 reply
July 2023

Julian_Wilden

When I run the next.js app, I get the following error:

Unhandled Runtime Error

TypeError: Cannot read properties of undefined (reading ‘data’)

It is caused by the file: src\app\components\SideNav.tsx (15:17) @ data

How can I fix that?

2 replies
July 2023 ▶ Julian_Wilden

PaulBratslavsky

I will take a look and see if I get the same error. Just quick question if you make the same request we are making from our Next js project via a postman are you able to see the results.

July 2023 ▶ jcwright04

PaulBratslavsky

Hmm, that is interesting, you can try to compare the final code of the backend repo with what you have so far and see if there are any diferences.

July 2023 ▶ Julian_Wilden

Julian_Wilden

Yes, in postman everything is working.
Also I think I found my mistake and that is…I wasn’t using the correct node version… it is working now.

Thanks for the tutorial Paul