SAP / openui5

OpenUI5 lets you build enterprise-ready web applications, responsive to all devices, running on almost any browser of your choice.
http://openui5.org
Apache License 2.0
2.95k stars 1.23k forks source link

Error: sap.ui.model.odata.v4.ODataContextBinding: undefined|comment is ignoring response from inactive cache #3755

Closed Mave213 closed 1 year ago

Mave213 commented 1 year ago

OpenUI5 version: 1.113.0

Browser/version (+device/version): Chrome Version 112.0.5615.138 (Offizieller Build) (32-Bit)

I manipulte my webapps URL manually, because my page has a NavContainer with several pages in it and i want one URL Parameter to indicate which page inside the NavContainer should be shown. Therefore I manipulate the URL when i switch between the pages of the NavContainer.

Now I want the router to register my manipulation, because right now if I start the application with ..../index.html#/Sheet/abe09717-ca32-11ed-b4ea-0000021cb359/Revision_1/Paragraph_2 then I navigate to the second NavContainer Page with its .to function and set the URL via window.history.pushState to ..../index.html#/Sheet/abe09717-ca32-11ed-b4ea-0000021cb359/Revision_1/Paragraph_3 and after that i want the router to navigate back to ..../index.html#/Sheet/abe09717-ca32-11ed-b4ea-0000021cb359/Revision_1/Paragraph_2 the router doesnt do anything because the hash hasn't changed yet and the router thinks we are still in Paragraph2

My first thought was to make changes to the routers or browsers hash. But that result in the following error: Error: sap.ui.model.odata.v4.ODataContextBinding: undefined|comment is ignoring response from inactive cache

What am I doint wrong? Any help is much aprecciated!

Greetings Marvin

ThomasChadzelek commented 1 year ago

Hello Marvin!

"is ignoring response from inactive cache" is usually not a fatal error. As long as your app is working, you can pretty much ignore it.

Best regards, Thomas

boghyon commented 1 year ago

As mentioned by Thomas, you can ignore the "is ignoring response from inactive cache" report.

Regarding the navigation issue in the app, please review https://github.com/SAP/openui5/blob/master/CONTRIBUTING.md#requirements-for-a-bug-report which states:

[...] Do not report:

  • something you do not get to work properly. Use a support forum like stackoverflow to request help.

Ask your question in one of the community platforms mentioned at https://openui5.org/community.
If the question contains an mcve, the community can help much faster. For example, you can fork and edit this https://plnkr.co/edit/HRSJ44 sample, and share the URL of your new sample in your question on Stack Overflow.

Hope this helps.