Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.
This repository was archived by the owner on Mar 19, 2026. It is now read-only.

Should catch reject promise of close client. #349

Closed

Description

@summer-ji-eng

rpc method can't catch error of rejected promise
(node:98660) UnhandledPromiseRejectionWarning: The client has already been closed.

canceller = toCall(argument, (err, response, next, rawResponse) => {
               ...
            }).catch(err => {
                console.log('---canceller error: ', err)
                callback(err);
            });
            ```

Activity

  1. added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Feb 5, 2022
  2. summer-ji-eng commented on Feb 11, 2022

    @summer-ji-eng
    ContributorAuthor

    fixed

  3. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions