Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to replay a fetch in chrome developer tools

In chrome developer tools is very useful to "replay xhr" for a xhr request (network tab). I have started using fetch in my code, and chrome developer tools do not allow to "replay" a fetch request, how is can it be? Am I doing something wrong?

like image 330
Max Favilli Avatar asked Mar 20 '17 16:03

Max Favilli


People also ask

How do I repeat a Chrome request?

Just right click on the request and select Replay XHR. Another way as others pointed out is to: Right click request > "Copy" > "Copy ss curl". Paste it to shell. or.

How do I edit and resend in Chrome?

Right-click it and select Edit and Resend. In the new panel that appears, you can edit the method, url, query string, headers, body, etc.

How do I view responses in Chrome dev tools?

In Google Chrome, navigate to a page to research. Within the page, right-click (for PC users) or command-click (Mac users) to view options, and then click Inspect. The Inspect feature will display the troubleshooting console, which will enable all of the available tools in a panel on the side of the window.

How do I run a fetch copy?

To use it: Right click on a Network Panel Resource. Select Copy > Copy as Fetch.


1 Answers

Well, seems it's not supported yet. It's a real disappointment because "replay" is just too useful to stop using it.

So I followed @wOxxOm advice and I just created a promised version of the standard xhr: https://github.com/max-favilli/helper-xhr

like image 183
Max Favilli Avatar answered Sep 24 '22 15:09

Max Favilli