Safari - WebInspector Network Tab - An error occurred trying to load the resource

Ramesh picture Ramesh · Sep 27, 2018 · Viewed 8.6k times · Source

I am seeing the error in the image below in Safari's Developer Tools (Network Tab) for the XHR/Fetch. The response body is not visible. It always throws the red text 'An error occurred trying to load the resource'. My initial thought was that the devtool wouldn't support fetch as opposed to XHR. But Safari 12 supports it.

example

OS: MacOS High Sierra Browser: Safari 12 & Technology Preview 66

Does this have something to do with the response headers? XSS or something else? PS: the same response body is visible in chrome dev tool.

Answer

Yehuda Schwartz picture Yehuda Schwartz · Nov 28, 2018

On the right of the menu bar with preview there is response with an arrow next to it click on that and switch it to JSON that should do the trick.