Skip to main content
🚀 See how 20+ AI Agents can make your QA faster and smarter. Join 10k+ QAs at global leadership summit! Register Now
Connect & Get help from fellow developers on our Discord community. Ask the CommunityAsk the Community

Debug common SDK errors

Learn how to identify and fix frequent SDK integration and runtime errors on BrowserStack Automate with actionable troubleshooting steps.

This page lists common BrowserStack SDK errors and how to fix them. Use it to quickly identify configuration, dependency, or environment issues and restore test stability.

Debug config errors

Use the SDK Debug Utility to verify local system and project configuration (credentials, directory structure, language selection, connectivity) before you run a large test suite.

Installation

Download the debug utility CLI binary for your operating system:

OS family x64 variant arm64 variant
macOS macOS x64 macOS arm64
Windows Windows
Linux Linux x64 Linux arm64
Alpine Linux Alpine x64 Alpine arm64

Run the debug utility

To run the utility:

  1. Extract the downloaded .zip file.
  2. Open your terminal (Command Prompt, PowerShell, or Terminal depending on your OS).
  3. To invoke the debug utility, execute the following command:
./binary-[OS-Variant] debug -u <username> -k <accesskey> -p <project-directory> -l <language>

Replace the OS variant above from the command.

Example

./binary-macos-arm64 debug -u <username> -k <accesskey> -p <project-directory> -l <language>

CLI options

The following table lists available CLI options:

Option Description
-p, --project-directory <dir path> Project directory path overriding the default current working directory.
-u, --username <username> BrowserStack username. You can also set the environment variable BROWSERSTACK_USERNAME. This information is available on your Profile page.
-k, --key <access key> BrowserStack access key. You can also set the environment variable BROWSERSTACK_ACCESS_KEY. This information is available on your Profile page.
-l, --language <value> Specify the language of the SDK you are using. Examples: java, python, node, csharp, ruby, php.
-h, --help Display help for the command (equivalent to debug -h).

Test reporting and analytics errors

These errors affect reporting, analytics, or test visibility on the dashboard.

Missing tests on dashboard

If tests run but do not appear on the BrowserStack dashboard, you likely have a configuration or dependency issue.

Cause 1: Framework Configuration SDK-TRA-001 SDK-TRA-002

Your browserstack.yml file is missing the framework key or its value is incorrect or unsupported.

Resolution

  • Ensure you have integrated a supported test framework and have explicitly defined the correct, supported framework name (check for spelling) under the framework key in your browserstack.yml file.

Cause 2: Cucumber Dependency Issues SDK-TRA-004 SDK-TRA-005

You are missing a required Cucumber dependency or using an unsupported version.

Resolution

  • Ensure you have installed the cucumber-core dependency using the command mvn dependency:tree.
  • Verify you are using a Cucumber version supported by BrowserStack and upgrade or downgrade your project’s version as needed.

Cause 3: General Dependency/Configuration Issue SDK-TRA-006

This error can occur if a recent update broke the integration or if dependencies are installed incorrectly.

Resolution

  • Check if your test framework was recently updated; try reverting to a known-working earlier version to isolate the issue and report it to BrowserStack support.
  • Verify all test libraries are correctly installed (e.g., mvn dependency:tree) and then compare your project’s dependencies with BrowserStack’s public sample projects.

Test process terminates unexpectedly SDK-TRA-003

The test process stopped due to an external signal (for example, Ctrl + C or kill), not an SDK failure.

Resolution Check the process signal code you received against this table to understand the external cause:

Signal Number Typical cause Default action Notes / causality
SIGINT 2 User interrupts the process (e.g., Ctrl + C). Terminate process Sent by the terminal driver; intended for graceful shutdown.
SIGTERM 15 Generic termination request (e.g., kill <pid>). Terminate process Standard way to ask a process to exit cleanly.
SIGHUP 1 Controlling terminal or session is closed. Terminate process Historically “modem hangup”; daemons may reload config.
SIGABRT 6 Process calls abort() (e.g., assertion failure). Core dump Indicates abnormal termination due to an internal error.

App accessibility errors

These errors occur during app accessibility testing when the app binary is not configured correctly.

Report Generation failures on App Accessibility

This single resolution applies if you experience any of the following issues:

Resolution

  • For app-based test execution, the SDK requires a path or URL to your app. You must define the app key in your configuration.
  • If using WebdriverIO with BrowserStack Plugin, add the app key inside the browserstack service block in your wdio.conf.js:
    services: [
    ['browserstack', {
      // ... other options
      app: '/path/to/local/app.apk'
      // OR
      app: 'bs://<app-id>'
    }]
    ]
    

There are more ways to configure your app, refer to WebdriverIO service documentation.

If you use the BrowserStack SDK, add one of the following to browserstack.yml:

userName: YOUR_BROWSERSTACK_USERNAME
accessKey: YOUR_BROWSERSTACK_ACCESS_KEY
## .... your configurations
app: /path/to/local/app.apk # SDK will upload your app
## OR
app: bs://<app-id>

Cause 1: Missing app key

Resolution For app-based test execution, the SDK requires a path or URL to your app. You must define the app key in your configuration.

  • If you are using WebdriverIO with BrowserStack Plugin for various products and features it provides and have App based setup, make sure you add ‘app’ key inside the ‘browserstack’ service block:
services: [
['browserstack', {
app: '/path/to/local/app.apk'
// OR
app: 'bs://<app-id>'
}]
]

There are more ways to configure your app, refer to WebdriverIO service documentation.

  • If you leverage BrowserStack SDK to enhance your testing outcomes, make the following change in your browserstack.yml file:
userName: YOUR_BROWSERSTACK_USERNAME
accessKey: YOUR_BROWSERSTACK_ACCESS_KEY
## .... your configurations
app: /path/to/local/app.apk # SDK will magically upload your apps, no more manual efforts
## OR
app: bs://<app-id>

Please reach out to BrowserStack Support for further concerns or use-cases.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle