Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

curl transfer closed with JSON.parse #1241

@saturngod

Description

@saturngod

I got curl: (18) transfer closed with outstanding read data remaining
problem in following code. console.log is working fine but I can't call url in browser and curl.

res.writeHead(200, {'Content-Type': 'text/plain'});
output=JSON.parse(output);
console.log(output);
res.end(output);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions