react-native-twilio-chat icon indicating copy to clipboard operation
react-native-twilio-chat copied to clipboard

Geting Network Error

Open metizror opened this issue 3 years ago • 1 comments

When I enter the user name its redirects to my channel list but showing the msg network error and also channel is not created due to this issue.

Screenshot_2021-05-12-18-28-59-457_com react_native_twilio_chat

metizror avatar May 12 '21 13:05 metizror

The problem may occur when your device and PC/Laptop are on different network i.e Different IPs. try changing axios.get(http://localhost/token/${username}).then((twilioUser) => { to axios.get(http://{your computer IPV4}:3001/token/${username}).then((twilioUser) => { in api-service.js This solved my issue.

muhamadjawad avatar May 17 '21 05:05 muhamadjawad