New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 768283 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 698209
Owner: ----
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Fetch API request body invisible after Request.clone()

Reported by alvin...@gmail.com, Sep 25 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Steps to reproduce the problem:
1. create a Request obj `var r = new Request('/test/', {method:'POST', body: JSON.stringify({a:1})});`
2. clone it  `var r2 = r.clone()`
3. fetch it  `fetch(r)` or `fetch(r2)`

example:
https://codepen.io/anon/pen/qPqLZV

What is the expected behavior?
I can see the request body in Network->Headers panel.

What went wrong?
I can't see any Request Payload in Network-> Headers panel.

Did this work before? N/A 

Chrome version: 61.0.3163.100  Channel: stable
OS Version: OS X 10.12.6
Flash Version:
 
Labels: Needs-Triage-M61
Cc: susanjuniab@chromium.org
Labels: Needs-Feedback
alvingin@ Thanks for the issue.

Tested this issue on Windows 7 and Mac OS 10.12.6 using the latest Chrome Stable 61.0.3163.100 and latest Canary 63.0.3223.8 with the steps as below.

1. Launched Chrome and opened the above given link.
2. Opened Devtools and clicked on Network tab.
3. reloaded the page and clicked on the files. 
4. Clicked on the headers tab and can observe the request body.

Attached is the screen cast for the reference.

Can you please confirm if the steps followed in the screen cast is correct. If not, requesting you to please attach the screen cast of the steps followed for the better understanding of the issue.

Thanks..
768283.webm
6.4 MB View Download

Comment 3 by alvin...@gmail.com, Sep 26 2017

thank you for your reply.

after you click reload, the code in JS panel has been reverted in the video.

you can try this link https://codepen.io/anon/pen/PJWrRO, I have remove the annotation.


ps. the server has received the body.
FD6969A5-0E99-4034-9342-AD5FDD31F1C8-1319-00000C55D0475B1C.gif
6.5 MB View Download
Project Member

Comment 4 by sheriffbot@chromium.org, Sep 26 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "susanjuniab@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: M-63 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
alvingin@ - Thanks a lot for clarification...!!

Able to reproduce the issue on Mac 10.12.6, Win-10 and Ubuntu 14.04 using chrome reported version #61.0.3163.100 and latest canary #63.0.3223.8.

This is a non-regression issue as it is observed from M50 old builds. 

Hence, marking it as untriaged to get more inputs from dev team.

Thanks...!!
Mergedinto: 698209
Status: Duplicate (was: Untriaged)

Sign in to add a comment