2
  • Dev tools Network, Preview showing "An error occurred trying to load the resource" for empty response body

  • BugsDesktopClarification

Select Develop, Open Network, go to a website where you can trigger a POST using AJAX that returns an emptry string for the HTTP response body.

Even when the status is HTTP 200 OK, the Preview window in Orion's dev tools says "An error occurred trying to load the resource" in bright red text.

Here are the response headers:

:status: 200
Content-Length: 0
Content-Type: text/html;charset=UTF-8
Date: Fri, 14 Apr 2023 03:24:49 GMT
Server: nginx
X-Frame-Options: DENY

Expected behavior:
Preview window should be blank. Other browsers displaying the same HTTP response do not show an error message because it is not an error to have an empty body.

Also note that the big red error message was unable to be selected for copy and paste, although that's a side issue.

Orion, OS version; hardware type:
Version 0.99.123.3-beta (WebKit 615.1.16.1)

  • Vlad replied to this.

    rohanc Can you verify if it properly works in Safari (TP)?

      7 days later

      Yes, the bug occurs in Safari too, but not in Chrome. Does this mean I should report this to the webkit project instead?

      • Vlad replied to this.
        No one is typing