ConnectyCube / connectycube-reactnative-samples

Chat and Video Chat code samples for React Native, ConnectyCube
https://connectycube.com
Apache License 2.0
125 stars 111 forks source link

"Internal Server Error", "status": "500" #129

Closed pankajinfowind closed 3 years ago

pankajinfowind commented 3 years ago

This demo project is successfully running, but when I try to implement in my react native project then it always through an error ""Internal Server Error", "status": "500"" when I try to call "CreateSession" API.

DaveLomber commented 3 years ago

Please share the logs of the request, will check

pankajinfowind commented 3 years ago

Okay, this happened because I was creating a session with a user that is not registered. But I have a question regarding the next flow, I manually created the user on the Connect Cube dashboard under the user-list. Then I am creating a session with that user then I am getting "unauthorized" error.

ccvlad commented 3 years ago

@pankajinfowind We need to check your logs

pankajinfowind commented 3 years ago

@ccvlad thanks, It has solved now, it happened because server side setup, I had enabled Custom Identity Provider, that's why I was always getting "Internal Server Error"