Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session creation issue with stark-vision plugin #2

Open
AnilPatidar opened this issue Nov 20, 2024 · 0 comments
Open

Session creation issue with stark-vision plugin #2

AnilPatidar opened this issue Nov 20, 2024 · 0 comments

Comments

@AnilPatidar
Copy link

POST /wd/hub/session {"capabilities":{"firstMatch":[{}],"alwaysMatch":{"appium:app":"/User/abc .ipa","appium:automationName":"XCuiTest","appium:bundleId":"xxx","appium:deviceName":"iPhone 6s","appium:newCommandTimeout":600000,"appium:noReset":false,"appium:platformVersion":"15.8.2","appium:udid":"xx","platformName":"IOS"}}}
[AppiumDriver@b65f] Calling AppiumDriver.createSession() with args: [null,null,{"firstMatch":[{}],"alwaysMatch":{"appium:app":"/Users/anil-patidar/Downloads/S2E2-Appium-2.0-Java-Mobile-Automation-main/src/test/resources/files/My11Circle_debug_21117.2.ipa","appium:automationName":"XCuiTest","appium:bundleId":"com.games24x7.my11circle.ios.staging","appium:deviceName":"iPhone 6s","appium:newCommandTimeout":600000,"appium:noReset":false,"appium:platformVersion":"15.8.2","appium:udid":"c6142f80c37ced7f02b089dc41580bb45b9142c4","platformName":"IOS"}}]
[AppiumDriver@b65f] Plugins which can handle cmd 'createSession': stark-vision
[AppiumDriver@b65f] Plugin stark-vision is now handling cmd 'createSession'
[AppiumDriver@b65f] Command 'createSession' was not handled by the following behaviours or plugins, even though they were registered to handle it: ["default"]. The command was handled by these: ["stark-vision"].
[AppiumDriver@b65f] Encountered internal error running command: TypeError: Cannot read properties of undefined (reading 'platformName')
at /Users/anil-patidar/.appium/node_modules/stark-vision/lib/bundle.js:3:5964556
at Generator.next ()
at /Users/anil-patidar/.appium/node_modules/stark-vision/lib/bundle.js:3:5945656
at new Promise ()
at _0x500f62 (/Users/anil-patidar/.appium/node_modules/stark-vision/lib/bundle.js:3:5938370)
at Object.tGvXD (/Users/anil-patidar/.appium/node_modules/stark-vision/lib/bundle.js:3:1724171)
at Object.MZbVk (/Users/anil-patidar/.appium/node_modules/stark-vision/lib/bundle.js:3:5924103)
at _0x40df40 (/Users/anil-patidar/.appium/node_modules/stark-vision/lib/bundle.js:3:5963782)
at _0x3711a7. (/Users/anil-patidar/.appium/node_modules/stark-vision/lib/bundle.js:3:5148860)
at Generator.next ()
at /Users/anil-patidar/.appium/node_modules/stark-vision/lib/bundle.js:3:5105130
at new Promise ()
at _0x43ab42 (/Users/anil-patidar/.appium/node_modules/stark-vision/lib/bundle.js:3:5061586)
at Object.MHchX (/Users/anil-patidar/.appium/node_modules/stark-vision/lib/bundle.js:3:1773330)
at _0x3711a7.createSession (/Users/anil-patidar/.appium/node_modules/stark-vision/lib/bundle.js:3:5142512)
at /Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/lib/appium.js:1201:35
at AppiumDriver.executeWrappedCommand (/Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/lib/appium.js:1241:22)
at AppiumDriver.executeCommand (/Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/lib/appium.js:1147:28)
at asyncHandler (/Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:387:32)
at /Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:512:15
at Layer.handle [as handle_request] (/Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
at next (/Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/node_modules/express/lib/router/route.js:149:13)
at Route.dispatch (/Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/node_modules/express/lib/router/route.js:119:3)
at Layer.handle [as handle_request] (/Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
at /Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/node_modules/express/lib/router/index.js:284:15
at Function.process_params (/Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12)
at next (/Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10)
at logger (/Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/node_modules/morgan/index.js:144:5)
at Layer.handle [as handle_request] (/Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/node_modules/express/lib/router/index.js:328:13)
at /Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/node_modules/express/lib/router/index.js:286:9
at Function.process_params (/Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/node_modules/express/lib/router/index.js:346:12)
at next (/Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/node_modules/express/lib/router/index.js:280:10)
at /Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/node_modules/body-parser/lib/read.js:137:5
at AsyncResource.runInAsyncScope (node:async_hooks:206:9)
at invokeCallback (/Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/node_modules/raw-body/index.js:238:16)
at done (/Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/node_modules/raw-body/index.js:227:7)
at IncomingMessage.onEnd (/Users/anil-patidar/.nvm/versions/node/v20.18.0/lib/node_modules/appium/node_modules/raw-body/index.js:287:7)
at IncomingMessage.emit (node:events:519:28)
at endReadableNT (node:internal/streams/readable:1696:12)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant