极星123
极星123
  • 发布:2020-08-27 11:49
  • 更新:2021-01-16 12:42
  • 阅读:1793

【报Bug】uni-app 启动App调试功能时,报错

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

HBuilderX类型: 正式

HBuilderX版本号: 2.8.8

手机系统: Android

手机系统版本号: Android 7.1.1

手机厂商: 逍遥模拟器

手机机型: 逍遥模拟器 Android7.1.2

页面类型: nvue

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

uni-app 启动App调试功能

预期结果:

正常启动App调试功能

实际结果:

一片空白,编辑器控制台打印报错信息,信息如下:

11:41:07.401 正在启动调试服务
11:41:15.277 调试服务已启动。日志信息将显示在Debug窗体的Console里
11:41:16.413 0 KB/s (85 bytes in 0.235s)
11:41:25.686 正在重启HBuilder调试基座...
11:41:32.139 应用【dcfqc】已启动...
11:41:33.606 启动调试影响HBuilderX和App端的运行性能,请勿将调试状态的流畅度作为真实产品参照
11:41:48.667 (node:21848) UnhandledPromiseRejectionWarning: Error: net::ERR_NETWORK_ACCESS_DENIED at http://192.168.10.29:8091/runtime/runtime.html
11:41:48.667 at navigate (D:\software\HBuilderX\plugins\uniapp-debugger\node_modules\puppeteer-cn-2\node_modules\puppeteer\lib\FrameManager.js:120:37)
11:41:48.668 at <anonymous>
11:41:48.668 at process._tickCallback (internal/process/next_tick.js:188:7)
11:41:48.668 -- ASYNC --
11:41:48.668 at Frame.<anonymous> (D:\software\HBuilderX\plugins\uniapp-debugger\node_modules\puppeteer-cn-2\node_modules\puppeteer\lib\helper.js:111:15)
11:41:48.668 at Page.goto (D:\software\HBuilderX\plugins\uniapp-debugger\node_modules\puppeteer-cn-2\node_modules\puppeteer\lib\Page.js:675:49)
11:41:48.668 at Page.<anonymous> (D:\software\HBuilderX\plugins\uniapp-debugger\node_modules\puppeteer-cn-2\node_modules\puppeteer\lib\helper.js:112:23)
11:41:48.669 at Object.exports.launchHeadless (D:\software\HBuilderX\plugins\uniapp-debugger\node_modules\@dcloudio\uni-debugger\src\server\headless.js:24:16)
11:41:48.669 at <anonymous>
11:41:48.669 at process._tickCallback (internal/process/next_tick.js:188:7)
11:41:48.669 (node:21848) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 5)
11:41:48.669 (node:21848) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
11:41:48.669 36

bug描述:

uni-app 启动App调试功能时,报错,信息如下:

11:41:07.401 正在启动调试服务
11:41:15.277 调试服务已启动。日志信息将显示在Debug窗体的Console里
11:41:16.413 0 KB/s (85 bytes in 0.235s)
11:41:25.686 正在重启HBuilder调试基座...
11:41:32.139 应用【dcfqc】已启动...
11:41:33.606 启动调试影响HBuilderX和App端的运行性能,请勿将调试状态的流畅度作为真实产品参照
11:41:48.667 (node:21848) UnhandledPromiseRejectionWarning: Error: net::ERR_NETWORK_ACCESS_DENIED at http://192.168.10.29:8091/runtime/runtime.html
11:41:48.667 at navigate (D:\software\HBuilderX\plugins\uniapp-debugger\node_modules\puppeteer-cn-2\node_modules\puppeteer\lib\FrameManager.js:120:37)
11:41:48.668 at <anonymous>
11:41:48.668 at process._tickCallback (internal/process/next_tick.js:188:7)
11:41:48.668 -- ASYNC --
11:41:48.668 at Frame.<anonymous> (D:\software\HBuilderX\plugins\uniapp-debugger\node_modules\puppeteer-cn-2\node_modules\puppeteer\lib\helper.js:111:15)
11:41:48.668 at Page.goto (D:\software\HBuilderX\plugins\uniapp-debugger\node_modules\puppeteer-cn-2\node_modules\puppeteer\lib\Page.js:675:49)
11:41:48.668 at Page.<anonymous> (D:\software\HBuilderX\plugins\uniapp-debugger\node_modules\puppeteer-cn-2\node_modules\puppeteer\lib\helper.js:112:23)
11:41:48.669 at Object.exports.launchHeadless (D:\software\HBuilderX\plugins\uniapp-debugger\node_modules\@dcloudio\uni-debugger\src\server\headless.js:24:16)
11:41:48.669 at <anonymous>
11:41:48.669 at process._tickCallback (internal/process/next_tick.js:188:7)
11:41:48.669 (node:21848) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 5)
11:41:48.669 (node:21848) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
11:41:48.669

2020-08-27 11:49 负责人:无 分享
已邀请:
山狐

山狐

同问同问

该问题目前已经被锁定, 无法添加新回复