Skip to content

Question — Why can I not read the stream again ? #196

@tusharmath

Description

@tusharmath

Once I have done fetch('/url').then(x => x.json()) If I do call the json() again, why does it have to throw — TypeError Already Read?

screen shot 2016-01-14 at 3 17 45 pm

Reference to fetch implementation — https://github.com/github/fetch/blob/4db9f7b4519d85ec19fee540f5467db1569e80f6/fetch.js#L212

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions