appium-device-farm icon indicating copy to clipboard operation
appium-device-farm copied to clipboard

An unknow server-side error while processing this command. Orginal error : cannot read property 'caps' of undefined with hub ip

Open SubbuLomada opened this issue 3 years ago • 5 comments

Describe the bug

Error : An unknow server-side error while processing this command. Orginal error : cannot read property 'caps' of undefined.

  1. Appium version (or git revision) that exhibits the issue: Appium 2.0 beta
  2. Last Appium version that did not exhibit the issue (if applicable):
  3. Node.js version (unless using Appium.app|exe): 14+
  4. Npm or Yarn package manager: 8+
  5. Mobile platform/version under test: Android 12
  6. Real device or emulator/simulator: Real device
  7. Appium CLI or Appium.app|exe: Appium CLI

Error : An unknow server-side error while processing this command. Orginal error : cannot read property 'caps' of undefined.

Note : It is happening when we are running from hub IP. if i try to run with normal ip with 4723 port it is working fine.

SubbuLomada avatar Oct 03 '22 13:10 SubbuLomada

Please show us your hub and node config. Also your capabilities.

Which client are you using?

saikrishna321 avatar Oct 03 '22 14:10 saikrishna321

Appium device-farm version : 2.0.0-beta6 Appium version : 2.0.0-beta 44

IMG-0737 IMG-0873

SubbuLomada avatar Oct 03 '22 14:10 SubbuLomada

Error : An unknow server-side error while processing this command. Orginal error : cannot read property 'caps' of undefined Please provide full server logs as gist.github.com

saikrishna321 avatar Oct 03 '22 17:10 saikrishna321

@SubbuLomada I'm unable to reproduce this issue. Can you give us steps to reproduce

saikrishna321 avatar Oct 18 '22 01:10 saikrishna321

@saikrishna321 [AppiumDriver@33ac] Command 'createSession' was not handled by the following behaviours or plugins, even though they were registered to handle it: ["default"1. The command was handled by these: ["device-farm"" appium-dashboard"]. [debug] [AppiumDriver@33ac] Encountered internal error running command: TypeError: Cannot read property 'caps' of undefined [debug] [AppiumDriver@33ac] at getMipegServerPort/Users/**/gppium/node_modules/gppium- dashboard/lib/plugin/utils/plugin-utils.is:177:36) [debug] [AppiumDriver@33ac] at SessionManager. /Users/lomadve/gppium/node_modules/ gppium-dashboard/lib/plugin/session-manager.is:225:123) [debug] [AppiumDriver@33ac] at Generator.next () [debug] [AppiumDriver@33ac] at fulfilled /Users//.gppium/node_modules/gppium-dashboard/lib/ plugin/session-manager.is:24:58) [debug] [AppiumDriver@33ac] at runMicrotasks (anonymous>) [debug] [AppiumDriver@33ac] at processTicksAndRejections (internal/process/tsk._queues.is:93:5) [HTTP] <-- POST /wd/hub/session 500 38561 ms - 688

SubbuLomada avatar Oct 19 '22 14:10 SubbuLomada

@sudharsan-selvaraj I see the issue is coming from appium-dashboard. Can you help here

saikrishna321 avatar Oct 26 '22 04:10 saikrishna321