uni.request({
url: 'https://www.baidu.com',
success: (res) => {
console.log(res);
},
fail: (res) => {
console.log(res);
}
});
- 发布:2024-09-03 15:47
- 更新:2024-09-03 15:47
- 阅读:56
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 4.18
手机系统: Android
手机系统版本号: Android 5.0
手机机型: TBY321-K型
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
发送请求
发送请求
预期结果:
正常返回
正常返回
实际结果:
报错:request:fail abort statusCode:-1 Unexpected char 0x578b at 43 in user-agent value: Mozilla/5.0 (Linux; Android 6.0.1; TBY321-K型 Build/MOB30M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/49.0.2596.0 Mobile Safari/537.36 uni-app Html5Plus/1.0 (Immersed/24.0)
报错:request:fail abort statusCode:-1 Unexpected char 0x578b at 43 in user-agent value: Mozilla/5.0 (Linux; Android 6.0.1; TBY321-K型 Build/MOB30M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/49.0.2596.0 Mobile Safari/537.36 uni-app Html5Plus/1.0 (Immersed/24.0)
bug描述:
request:fail abort statusCode:-1 Unexpected char 0x578b at 43 in user-agent value: Mozilla/5.0 (Linux; Android 6.0.1; TBY321-K型 Build/MOB30M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/49.0.2596.0 Mobile Safari/537.36 uni-app Html5Plus/1.0 (Immersed/24.0)
0 个回复