Skip to content

Should catch reject promise of close client. #349

@summer-ji-eng

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);
            });
            ```

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