twilio / twilio-conversations-demo-react

Twilio Conversations Demo Web Application
MIT License
96 stars 295 forks source link

Error "Cannot read properties of undefined (reading 'then')" on new conversation. #118

Closed EdZava closed 7 months ago

EdZava commented 1 year ago

I downloaded the project and it runs correctly. But when trying to create a new conversation it gives this error in the api. I didn't see how to fix it.

This is the error:

image

I think the error is in this method:

image
berkus commented 1 year ago

Is the client really logged in?

You can enable SDK logs and check what is happening.

EdZava commented 1 year ago

@berkus If it was a problem in the initialization of the Twillio SDK api client that never initialized correctly, but did not give any error message when opening the application.

I have modified and made some contructions to the project to fix this problem and other bugs in the project.

This is the pull request with the changes: #119