question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: The session with id 'undefined' does not exist

See original GitHub issue

The problem

Since yesterday evening my tests throwing this error

Environment

  • Appium version (or git revision) that exhibits the issue: beta27/beta28
  • Last Appium version that did not exhibit the issue (if applicable): beta27
  • Desktop OS/version used to run Appium: Monterey
  • Node.js version (unless using Appium.app|exe): 14
  • Npm or Yarn package manager: 6.14
  • Mobile platform/version under test: iOS
  • Real device or emulator/simulator: Simulator
  • Appium CLI or Appium.app|exe: CLI

Details

The server is started via AppiumServiceBuilder in java

Link to Appium logs

2022-04-08 08:24:35:798 - [Appium] Attempting to load plugin images...
2022-04-08 08:24:35:800 - [debug] [Appium] Requiring plugin at /Users/jenkins/HomeOfQA/workspace/RMA-iOS-Versions/uitesting/.appium/node_modules/@appium/images-plugin
2022-04-08 08:24:37:030 - [Appium] Welcome to Appium v2.0.0-beta.28 (REV 28603c381745d77b6e6efb8b70e8de870638eb29)
2022-04-08 08:24:37:032 - [Appium] Non-default server args:
2022-04-08 08:24:37:034 - [Appium] { address: '127.0.0.1',
2022-04-08 08:24:37:034 - [Appium]   allowInsecure: [ 'adb_shell' ],
2022-04-08 08:24:37:035 - [Appium]   localTimezone: true,
2022-04-08 08:24:37:035 - [Appium]   logTimestamp: true,
2022-04-08 08:24:37:035 - [Appium]   port: 4727,
2022-04-08 08:24:37:035 - [Appium]   usePlugins: [ 'images' ] }
2022-04-08 08:24:37:035 - [Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
2022-04-08 08:24:37:035 - [Appium] { 'appium:noReset': 'false' }
2022-04-08 08:24:37:036 - [Appium] Attempting to load driver xcuitest...
2022-04-08 08:24:37:038 - [debug] [Appium] Requiring driver at /Users/jenkins/HomeOfQA/workspace/RMA-iOS-Versions/uitesting/.appium/node_modules/appium-xcuitest-driver
2022-04-08 08:24:38:485 - [Appium] Appium REST http interface listener started on 127.0.0.1:4727
2022-04-08 08:24:38:486 - [Appium] Available drivers:
2022-04-08 08:24:38:486 - [Appium]   - xcuitest@4.3.5 (automationName 'XCUITest')
2022-04-08 08:24:38:486 - [Appium] Available plugins:
2022-04-08 08:24:38:486 - [Appium]   - images@1.2.4 (ACTIVE)
2022-04-08 08:24:38:498 - [HTTP] --> GET /status
2022-04-08 08:24:38:498 - [HTTP] {}
2022-04-08 08:24:38:499 - [debug] [AppiumDriver@1229] Calling AppiumDriver.getStatus() with args: []
2022-04-08 08:24:38:523 - [debug] [AppiumDriver@1229] Encountered internal error running command: Error: The session with id 'undefined' does not exist
2022-04-08 08:24:38:523 - [debug] [AppiumDriver@1229]     at AppiumDriver.executeCommand (/Users/jenkins/HomeOfQA/workspace/RMA-iOS-Versions/uitesting/node_modules/appium/lib/appium.js:549:15)
2022-04-08 08:24:38:523 - [debug] [AppiumDriver@1229]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
2022-04-08 08:24:38:523 - [debug] [AppiumDriver@1229]     at asyncHandler (/Users/jenkins/HomeOfQA/workspace/RMA-iOS-Versions/uitesting/node_modules/@appium/base-driver/lib/protocol/protocol.js:313:19)
2022-04-08 08:24:38:540 - [HTTP] <-- GET /status 500 41 ms - 716

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
jlippscommented, Apr 12, 2022

beta 29 has been published

0reactions
StephanB75commented, Apr 13, 2022

Seems to be fixed with beta@30 Thank you @jlipps for the quick release

Read more comments on GitHub >

github_iconTop Results From Across the Web

session id shows as undefined node.js - Stack Overflow
I am trying to setup authenticated socket calls to match sockets with each user. I have this code that does it for the...
Read more >
Error codes for the Amazon EC2 API - AWS Documentation
Amazon EC2 has two types of error codes: ... InvalidClientTokenId, The X.509 certificate or AWS access key ID provided does not exist in...
Read more >
Session - OpenTok.js | Vonage Video API Developer
The session ID for this session. You pass this value into the OT.initSession() method when you create the Session object. (Note: a Session...
Read more >
Troubleshoot common connection issues to Azure SQL ...
Provides steps to troubleshoot Azure SQL Database connection issues and resolve other Azure SQL Database or Azure SQL Managed Instance ...
Read more >
Errors | Node.js v19.3.0 Documentation
For all EventEmitter objects, if an 'error' event handler is not provided, the error will be thrown, causing the Node.js process to report...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found