Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST calls - Request Payload is not shown with native fetch #59

Closed
vigneshshanmugam opened this issue Jun 1, 2015 · 8 comments
Closed

Comments

@vigneshshanmugam
Copy link
Member

fetch(url, {
  method: 'post',
  headers: {
    'Accept': 'application/json',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    id: 'Hubot',
    name: 'hubot',
  })
})

The payload body is not shown on both Chrome and Firefox Dev tools. Tried even with Canary and Nightly builds.

However, the Github Fetch polyfill is properly showing the payload data.

@domenic
Copy link
Member

domenic commented Jun 1, 2015

This is not an issue with the spec (which is what this repo is for). You should consider filing an issue on Chrome and Firefox for their dev tools to support things as you wish.

@domenic domenic closed this as completed Jun 1, 2015
@vigneshshanmugam
Copy link
Member Author

Sure will do. Thanks @domenic

@jongbeau
Copy link

@vigneshshanmugam did you ever find a solution to get the payload to show?

@vigneshshanmugam
Copy link
Member Author

I am using fetch-polyfill from Github, So its not causing issue for me now.

But the issue is not fixed though.

@jongbeau
Copy link

are you talking about this: https://github.com/github/fetch ?
installed with npm install whatwg-fetch ?
That's what I am using, and i'm having the request payload not showing issue.

@vigneshshanmugam
Copy link
Member Author

Yeah I am using this only and getting the request payload properly showing up.

However, if you are in the latest browser the polyfill will not replace the browser's native fetch method. So under the hood you will be using the browsers fetch.

@mewben
Copy link

mewben commented Jul 29, 2015

+1 Request payload is not showing on Chrome but shows in Firefox.

@jakearchibald
Copy link
Collaborator

This should be fixed in Chrome Canary https://code.google.com/p/chromium/issues/detail?id=457484

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

No branches or pull requests

5 participants