Bug 189781 - Web Inspector: xhr response body error
Summary: Web Inspector: xhr response body error
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: Safari Technology Preview
Hardware: Mac macOS 10.13
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-20 03:00 PDT by Andrey Polischuk
Modified: 2019-07-30 14:27 PDT (History)
1 user (show)

See Also:


Attachments
1 request (101.44 KB, image/png)
2018-09-20 03:00 PDT, Andrey Polischuk
no flags Details
2 request (102.36 KB, image/png)
2018-09-20 03:01 PDT, Andrey Polischuk
no flags Details
3 request (270.44 KB, image/png)
2018-09-20 03:01 PDT, Andrey Polischuk
no flags Details
test page (397 bytes, text/html)
2018-09-20 03:02 PDT, Andrey Polischuk
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Polischuk 2018-09-20 03:00:58 PDT
Created attachment 350180 [details]
1 request

If I make multiple xhr requests to the same endpoint, web inspector show response body only for the last request, and show "an error occured trying to load the resource" for others (screenshots were attached).

<!doctype html>
<html prefix="og: http://ogp.me/ns#" lang="en">
  <head>
    <meta charset="utf-8">
  </head>
  <body>
    <script>
      (async () => {
        await fetch('https://api.github.com/users/andrepolischuk')
        await fetch('https://api.github.com/users/andrepolischuk')
        await fetch('https://api.github.com/users/andrepolischuk')
      })()
    </script>
  </body>
</html>


It caught for all methods: get, post...
If I add a random string at the end of endpoint, all responses are displayed.
Comment 1 Andrey Polischuk 2018-09-20 03:01:26 PDT
Created attachment 350181 [details]
2 request
Comment 2 Andrey Polischuk 2018-09-20 03:01:50 PDT
Created attachment 350182 [details]
3 request
Comment 3 Andrey Polischuk 2018-09-20 03:02:27 PDT
Created attachment 350183 [details]
test page
Comment 4 Yury Semikhatsky 2019-07-30 14:27:53 PDT
Cannot reproduce it on the tip of tree WebKit.