openimsdk / openim-reactnative-demo

4 stars 11 forks source link

[BUG]error [AxiosError: Network Error] #22

Closed 15975019972 closed 3 days ago

15975019972 commented 1 month ago

OpenIM Server Version

3.7.1

Operating System and CPU Architecture

macOS (ARM)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

error [AxiosError: Network Error] LOG [AxiosError: Network Error] image

Screenshots Link

No response

lgz5689 commented 1 month ago

Please check whether your service has been successfully deployed

15975019972 commented 1 month ago

Please check whether your service has been successfully deployed

服务器配置没有问题,使用http://xxxxxx:11001/#/chat,能注册成功,但是使用rn app就提示我网络错误

15975019972 commented 1 month ago

image

15975019972 commented 1 month ago

image 用postman 测试还是可以请求到了

lgz5689 commented 1 month ago

You can try writing a request and sending it to baidu.com and other websites to see if there is a problem with the simulator network

15975019972 commented 1 month ago

你使用ip地址试试看,我怀疑是使用ip地址是会提示网络错误。是否是因为ip地址的问题,要替换域名形式 image

lgz5689 commented 1 month ago

Not sure about your server deployment and network Settings, it seems to be a problem on your side

lgz5689 commented 1 month ago

You try to access the normal api with a data response, so I suspect a server side issue

15975019972 commented 1 month ago

我将我线上域名给你,因为是按照官网的形式部署的,我使用postman可以请求到数据,但是使用模拟器axios提示网络错误,我找不到原因。最直接我能找到是因为域名和ip地址的区别