Skip to content

ERR_MULTIPLE_CALLBACK #124

@emmansun

Description

@emmansun

When we return
{ mustRetry: true, options: options }
and the options has agent property in our own custom retry strategy, we got ERR_MULTIPLE_CALLBACK.
image

The same code, if we just return the bool value of mustRetry or we delete the agent property in options, then it works fine as before. It seems the agent is NOT cloneable.

Env:
nodejs: 12.19.0
request: 2.88.1
reqeustretry: 4.1.1
agentkeepalive: 4.1.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions