Why Chrome Dev tools (network tab) doesn't show the response for a request? (Failed to load response data: No resource with given identifier found))
Asked Answered
I

4

7

I have been unable to deduce why Chrome(97.x.x.x) is unable to load the response for a successful POST XHR. It displays the following message in the response section: Failed to load response data: No resource with given identifier found

However, I could see the response for the same in the Firefox(96.x.x).

PS: I can see the headers, payload and other section properly.

Impeditive answered 31/1, 2022 at 11:24 Comment(0)
A
3

In my case, I had an issue with too many re-renders and encountered this behavior. The GET request worked fine, but a bug in my code caused too many re renderings and I am not sure why (perhaps because I use react-query, perhaps because of that bug I had) there was a new attempt to get the data when the application was in an error state. That ended in a response exactly like the one you describe, same message and all.

Asir answered 25/7, 2022 at 10:46 Comment(1)
But the same requests will show proper response in Firefox for example I have lately encountered this behaviour a lot. I believe there are strict protocols/security policies which are respected by chrome and firefox is a bit relaxed on themImpeditive
F
0

untick the "Preserve log" option and load the page again.

Fuzz answered 22/9, 2022 at 7:9 Comment(3)
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.Sialkot
it's working but can you provide more information whyBinkley
This suggestion actually fixed the "Failed to load response data" problem, allowing me to see, (minus the HTML garbage): "Warning: Undefined variable $lockoutSpan in ****.php on line 161....", allowing me to find and fix my issue, as I had simply neglected to declare a global inside a function. So, thanks user16886990, if you're still out there. For the record, I am using XAMPP. One downvote cancelled by my upvote.Springe
D
0

I had a similar issue, the issue was with the backend server configurations. Setting the environment variable as Development resolved the issue.

I hope it helps at least with figuring out some things.

Donnell answered 9/1 at 8:44 Comment(2)
Can you specify more what kind of configuration you are describing here? In my case there are certain scenarios where we can see response and sometimes not.Impeditive
Hi Anubhav, unfortunately, I cannot remember exactly the circumstances, it was quite a long time ago. I've already forgotten where the original root cause came out. But I believe it was related to some settings in an ASP.NET Core app.Donnell
P
0

I encountered a similar issue, which could be due to one of the following scenarios:

  1. Your API code is crashing (as in my case, where my code was causing the backend to restart after the crash).
  2. Your backend isn't properly deployed. In this case, try redeploying the backend from scratch.
Plunder answered 9/9 at 6:38 Comment(1)
Actually that is not the case, In the mentioned scenario the backend is working as expected.Impeditive

© 2022 - 2024 — McMap. All rights reserved.