使用 const tastk = uni.connectSocket({}) 连接成功
然后task.send()
然后执行uni.reqest()
然后就报错了
- 发布:2024-12-24 17:57
- 更新:2024-12-24 18:00
- 阅读:89
产品分类: uni-app x/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win11
HBuilderX类型: 正式
HBuilderX版本号: 4.36
手机系统: Android
手机系统版本号: Android 15
手机厂商: 小米
手机机型: 小米14Pro
页面类型: vue
vue版本: vue3
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
预期不应该出现报错
预期不应该出现报错
实际结果:
报错:
//[uts.sdk.modules.DCloudUniNetwork.RequestFailImpl]
{
"errCode":
//[Int]
602001,
"cause":
//[io.dcloud.uniapp.SourceError]
{
"code":
//[number]
0,
"subject": null,
"cause": null,
"message": "android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)",
"name": "Error"
},
"data": null,
"errMsg": "request system error",
"errSubject": "uni-request",
"message": "",
"name": "Error"
}
报错:
//[uts.sdk.modules.DCloudUniNetwork.RequestFailImpl]
{
"errCode":
//[Int]
602001,
"cause":
//[io.dcloud.uniapp.SourceError]
{
"code":
//[number]
0,
"subject": null,
"cause": null,
"message": "android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)",
"name": "Error"
},
"data": null,
"errMsg": "request system error",
"errSubject": "uni-request",
"message": "",
"name": "Error"
}
bug描述:
【报Bug】连接socket后任何一个地方执行uni.request会报错android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
//[uts.sdk.modules.DCloudUniNetwork.RequestFailImpl]
{
"errCode":
//[Int]
602001,
"cause":
//[io.dcloud.uniapp.SourceError]
{
"code":
//[number]
0,
"subject": null,
"cause": null,
"message": "android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)",
"name": "Error"
},
"data": null,
"errMsg": "request system error",
"errSubject": "uni-request",
"message": "",
"name": "Error"
}
1 个回复
小七哥 (作者)
uni-app x发现的bug