Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SAPUI5 how to debug negative cache error?

Tags:

sapui5

I see this occasionally apprears in console and crashed the app:

Uncaught Error: found in negative cache: 'grants/portfolio/Portfolio.controller.js' from vendor/openui5-sdk/resources/grants/portfolio/Portfolio.controller.js: 404 - Not Found

The error goes away after refreshing the page and it is hard to predict when it is going to apprear again. What is the couse of this error and/or how to debug it?

like image 468
Dziamid Avatar asked Jul 30 '26 14:07

Dziamid


1 Answers

You can get it away with control + F5.

This error happens when your SAPUI5 page tries to load a resource and fails (e.g. there is a mistake in the code or reference to the file, resulting in inproper loading of the resource).

The browser remembers that the request failed, and rather than try to call the exact same resource it informs you that it doesn't work.

like image 109
Daniël Camps Avatar answered Aug 03 '26 17:08

Daniël Camps



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!