sudharsan-selvaraj / appium-dashboard-plugin

Appium plugin that provides complete test logs, video recording of test and device logs(logcat and syslogs) for easy debugging.
114 stars 28 forks source link

Unable to Load Dashboard with Devices on Windows #54

Open prabhurohith opened 2 years ago

prabhurohith commented 2 years ago

Appium Version : 2.0.0-beta.25 OS : Windows 10 Node : v14.17.5

Logs : [HTTP] --> GET /dashboard/api/sessions? [HTTP] {} (node:12668) UnhandledPromiseRejectionWarning: Error: at Database. (C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\lib\dialects\sqlite\query.js:227:27) at C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\lib\dialects\sqlite\query.js:225:50 at new Promise () at Query.run (C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\lib\dialects\sqlite\query.js:225:12) at C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\lib\sequelize.js:642:28 at SQLiteQueryInterface.rawSelect (C:\ DashboardIssueSS Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\lib\dialects\abstract\query-interface.js:1021:18) at Function.aggregate (C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\lib\model.js:2022:19) at Function.count (C:\Users\Rohit Prabhu\A DashboardIssue.txt ppData\Roaming\npm\appium-dashboard\node_modules\sequelize\lib\model.js:2070:20) at async Promise.all (index 0) at Function.findAndCountAll (C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\lib\model.js:2129:27) (node:12668) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:12668) [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.

DashboardIssue.txt DashboardIssueSS

sudharsan-selvaraj commented 2 years ago

From the logs i can see that the dashboard version you are using is v1.0.0-beta.10. but the latest version is v1.0.0-beta.11. Have you tried updating it to the latest one?

prabhurohith commented 2 years ago

in the logs if you could scroll down you can see the updated version used [Appium] Available drivers: [Appium] - uiautomator2@1.67.0 (automationName 'UiAutomator2') [Appium] - espresso@1.45.3 (automationName 'Espresso') [Appium] Available plugins: [Appium] - element-wait@1.0.0-beta.3 [Appium] - gestures-demo@1.0.0 [Appium] - device-farm@1.0.0-beta.12 (ACTIVE) [Appium] - appium-dashboard@v1.0.0-beta.11 (ACTIVE) [HTTP] --> GET /dashboard/api/sessions? [HTTP] {} (node:13540) UnhandledPromiseRejectionWarning: Error: at Database. (C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\src\dialects\sqlite\query.js:227:27) at C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\src\dialects\sqlite\query.js:225:50 at new Promise () at Query.run (C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\src\dialects\sqlite\query.js:225:12) at C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\src\sequelize.js:643:28 at SQLiteQueryInterface.rawSelect (C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\src\dialects\abstract\query-interface.js:1021:18) at Function.aggregate (C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\src\model.js:2024:19) at Function.count (C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\src\model.js:2072:20) at async Promise.all (index 0) at Function.findAndCountAll (C:\Users\Rohit Prabhu\AppData\Roaming\npm\appium-dashboard\node_modules\sequelize\src\model.js:2131:27) (node:13540) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:13540) [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. [HTTP] --> GET /dashboard/api/sessions?

sudharsan-selvaraj commented 2 years ago

@prabhurohith , at the moment I don't have access for any windows system from my end to reproduce the issue. If possible let's pair up sometime and debug the issue.

prabhurohith commented 2 years ago

Hello Sudharshan, Can we connect on Friday afternoon post 4pm if its fine with you or else on Saturday. Thanks.

Regards, Rohith P

On Wed, 9 Mar 2022, 20:47 Sudharsan Selvaraj, @.***> wrote:

@prabhurohith https://github.com/prabhurohith , at the moment I don't have access for any windows system from my end to reproduce the issue. If possible let's pair up sometime and debug the issue.

— Reply to this email directly, view it on GitHub https://github.com/sudharsan-selvaraj/appium-dashboard-plugin/issues/54#issuecomment-1063028152, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGNACO3YPNGKQCEOE3AQAS3U7C6IJANCNFSM5P5F7JWA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.*** com>