Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My dev tools are missing the "replay xhr" option

Tags:

I'm currently using verison 72.0.3626.119 on a Debian Strecht. I've noticed that since a couple of days (perhaps one or two weeks) I'm missing the Replay XHR menu entry you get when you do a right click on an XHR request in the network window as described here.

I've been also searching google for this with mixed results, I've found this SO question from 2016 where the OP seems to have a similar issue but since my xhr request are not uploading files, this does not apply to me either. In the devtool forums I've found nothing that could help.

So the question is, is this function also gone for everybody else? Or is it just me? I've gone through the devtools settings but I didn't find any option that would help me with this.

like image 525
Pablo Avatar asked Mar 01 '19 14:03

Pablo


People also ask

How do I replay my XHR?

If you wish to re-run an XHR request without having to reload the page or rerun the event, you can right click on the resource and and select "Replay XHR" ("Resend" in Firebug).

How can you replay and replicate XHR requests?

Right click on the request made, mouse over "Copy", click "Copy as fetch". Otherwise, I've read that for other requests, made by Axios, for instance can be replayed by : Right click on the request made and click "Replay XHR".

What is XHR in DevTools?

XMLHttpRequest (XHR) is a JavaScript API to create AJAX requests. Its methods provide the ability to send network requests between the browser and a server.


1 Answers

The replay XHR still there if you are using the xhr api via axios or something similar, however, if your app is using the new api fetch, you need to use a different approach.

Since Chrome 67, it was introduced a new feature called copy as fetch.

In that case, you can copy as fetch and paste on your console.

So, if you'd like to replay your fetch requests, just paste on your console, then press and enter to replay your XHR.

The best part of that on the new feature is that you are able to edit your request, before replay.

enter image description here

like image 113
Leo Caseiro Avatar answered Sep 24 '22 09:09

Leo Caseiro