Skip to content

Unhandled promise rejection somewhere in people.get #4588

@brettdh

Description

@brettdh

Describe the bug
When an SDK method (such as webex.people.get(personId)) fails with an error, I expect the promise returned by the method to reject, which it does. However, some other promise inside the SDK is also rejecting, as shown in the browser console log and also in the dev server's built-in error handling, which detects the unhandled promise rejection and displays the error (in this case, just the person ID with no other context) in the full-screen overlay.

The reason I know that this is an issue inside the SDK and not in my code is that if I replace this call in my code:

await webex.people.get(personId)

with this:

throw new Error('whoopsie')

then the unhandled rejections go away. This indicates that the error handling in my app is working correctly and that the problem is in the SDK, perhaps with a broken chain of promises somewhere.

To Reproduce
Steps to reproduce the behavior:

  1. Create a browser app that calls webex.people.get(personId) with a `personId that doesn't exist
  2. Run the app in a browser
  3. Observe the unhandled promise rejection in the browser console

Expected behavior
No unhandled rejections from within the SDK

Platform (please complete the following information):

  • OS: macOS Tahoe 26.1
  • Browser: Chrome
  • Version: 142.0.7444.176
  • Device Type: Desktop

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions