Skip to content

Using node-fetch with v5 causing request to hang #142

@ohana54

Description

@ohana54

Hi,

I'm trying to upgrade the sdk from v3 to v5. When using the getVisitorHistory API, the request hangs.
I debugged the flow and it is caused by the cloning of the response. If I edit the code and remove the clone call, it works fine.

More info on why - node-fetch/node-fetch#1131

Note I'm using node-fetch v2, and not the native fetch function, but according to the above bug report, seems like it can happen with native fetch as well.

Is there a reason for the response cloning? From reading the issue above and in other places, both responses should be consumed, but I'm not an expert on that area.

Would love your take on this, thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions