failed to load response data request content was evicted from inspector cache

i am trying to get file from server that has size of(15mb) through Axios Request. showing status "200", but not sending file previewData(base64) and showing this error "failed to load response data request content was evicted from inspector cache"enter image description here in the preview of Network in inspect. when i get 2 or 3 MB fille that successfully retrived.

0

5 Answers

The solution I found for capturing big responses is to copy the request and execute it by other means, such as PowerShell or cURL. From the Chrome or Firefox DevTools you can copy the request to a PowerShell, cURL or fetch command by right-clicking the request, selecting copy and then selecting your preferred execution method.

What worked best for me is copying the request as cURL command from Firefox. Chrome is giving me invalid cURL commands.

To capture the response to a file, append > response.txt to the cURL command.

It is also possible to select cURL as the copy method and import it into Postman. In Postman select File - Import - Raw text and copy the cURL command. When I tried this it did mess up the double quotes in the JSON body of a POST request so it may need some manual tweaking.

2

The data exists, it's just that it doesn't show it in the cache inspector because it exceeds the maximum number of characters, you can check by saving what the variable has in a .txt file

1

In my case, the issue resolved by closing the dev tools of Chrome and reopening it and then refreshing the page. This may not be the case for everyone, but resolved my issue and "failed to load response data request content was evicted from inspector cache" error gone.

In my case, create a .txt file and save the base64 in it, I checked that the data was sent and saved. Therefore the data was not displayed in the inspector because it exceeds the maximum size.

1

If you clean the Cache and Hard Reload I believe it will fix your problem.

for Hard Reload just open the Chrome Dev Tools. Once the chrome dev tools are open, just right-click on the refresh button and a menu will drop down. This menu gives you the option of doing a hard refresh.

enter image description here

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like