gargl icon indicating copy to clipboard operation
gargl copied to clipboard

can not record some post requests when click on certain buttons

Open siyaoli opened this issue 8 years ago • 4 comments

Hi Joe,

I am a big fan of Gargl. Now I have a problem, when I click on some certain buttons, I can get post requests of XHR from network tab, but I cannot get these records from Gargl. The website uses a lot of ajax. Could you please release a new version or give me some idea about how to make a complete record on all these XHR?

Thank you so much!

siyaoli avatar Sep 09 '16 15:09 siyaoli

Hi, What page are you doing this from, and what URLs are not showing up in Gargl?

jodoglevy avatar Sep 12 '16 23:09 jodoglevy

I had this issue messing around with Trivia Crack just recently. The POST request it issues to assign a card to a slot seems to get completely ignored by the chrome devtools.

The URL is https://api.preguntados.com/api/users/@user-id@/gacha-slots/@slot-id@/cards

This could be because the POST request has a payload of "{id: @card-id@}". I don't think any of the other POST requests have a payload and they all seem to get tracked by gargl just fine.

arpsmack avatar Oct 21 '16 03:10 arpsmack

Err, sorry, let me clarify. The POST request shows up in the network view in the chrome devtools, but for some reason the request is not being passed to gargl's chrome.devtools.network.onRequestFinished listener.

"completely ignored by the chrome devtools" probably wasn't the correct choice of words.

arpsmack avatar Oct 21 '16 03:10 arpsmack

Weird. Just looked into this a bit. It does seem like Chrome is not firing the handler passed to chrome.devtools.network.onRequestFinished as you said, specifically for cross origin POST requests. Regular POST requests, and cross origin GET requests, seem to show up fine. But for cross origin POST requests, only the OPTIONS request before the POST shows up.

I don't think its related to the POST request body, because the POST requests to https://apps.facebook.com/ajax/bz on the same page show up fine in Gargl, and they have a body. But they are not cross-origin, which is why I think the issue is related to that.

jodoglevy avatar Nov 15 '16 05:11 jodoglevy