Skip to content

"102 Processing" not following the spec #377

Closed

Description

@miles-po

Expected behavior per Section 4.6 of the Fetch API
"Any responses whose status is in the range 100 to 199, inclusive, and is not 101, are to be ignored."

Actual behavior: Returns status code of 102 and empty response rather than waiting for the final 200 status code from the server.

Activity

  1. bitinn commented on Dec 11, 2017

    @bitinn
    Collaborator

    Hmm, the last time I checked this step wasn't there. Are browsers following this guideline?

    Also, what sort of use cases are you using it for?

  2. miles-po commented on Dec 11, 2017

    @miles-po
    Author
  3. miles-po commented on Dec 11, 2017

    @miles-po
    Author
  4. miles-po commented on Jan 8, 2018

    @miles-po
    Author

    Looks like you're using the http/https modules, which are broken with regard to the RFCs. I made a PR for the core Node project. We'll see how that pans out.
    Issue: nodejs/node#9282
    PR: nodejs/node#18033

  5. changed the title [-]"100 Continue" not following the spec[/-] [+]"102 Processing" not following the spec[/+] on Jan 8, 2018
  6. TimothyGu commented on Jan 8, 2018

    @TimothyGu
    Collaborator

    @miles-po Thanks for filing the Node.js PR. Seems like a clean fix.

    In the mean time, is there anything we on the node-fetch side can do to work around that bug?

  7. miles-po commented on Jan 8, 2018

    @miles-po
    Author

    I believe since node-fetch is listening to events from the http/https modules and the 'received' event only ever fires once, there is not much node-fetch can do for now except track the upstream bug and then make sure if committed that it doesn't break anything.

  8. TimothyGu commented on Feb 3, 2018

    @TimothyGu
    Collaborator

    Okay, well not much we can do here then. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions