OnResourceResponse to capture CACHE_READ_FAILURE -401

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

OnResourceResponse to capture CACHE_READ_FAILURE -401

Postby rodrigobarros » Tue Sep 11, 2018 2:25 pm

Based on based on viewtopic.php?f=6&t=981, I´m trying to implement/override OnResourceResponse in order to capture Resource load errors but whe we had a cache miss error it is not fired. I can see the error below on cef.log though but OnResourceResponse is not fired in this situation:
[0911/155902.079:ERROR:entry_impl.cc(1062)] No file for 8000026c

The error I´m trying to capture is:
https://cs.chromium.org/chromium/src/ne ... &g=0&l=786

Am I assuming correctly on using OnResourceResponse for this need?
rodrigobarros
Techie
 
Posts: 13
Joined: Wed Nov 02, 2016 1:52 pm

Re: OnResourceResponse to capture CACHE_READ_FAILURE -401

Postby Czarek » Tue Sep 11, 2018 3:40 pm

It seems that this is a severe error with files on disk missing. How does this happen?
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: OnResourceResponse to capture CACHE_READ_FAILURE -401

Postby rodrigobarros » Tue Sep 11, 2018 3:53 pm

This is a cache failure which we could not yet pinpoint how to reproduce but the only resolution we could realize is to capture this error and do a reload ignore cache. Problem is that we still could not capture this error on the refered method.
rodrigobarros
Techie
 
Posts: 13
Joined: Wed Nov 02, 2016 1:52 pm

Re: OnResourceResponse to capture CACHE_READ_FAILURE -401

Postby rodrigobarros » Wed Sep 12, 2018 8:16 am

Further debug shows that we keep receiving Status: None as if the fetch was successful but in fact it failed at CEF level.
[0912/100822.127:ERROR:entry_impl.cc(1062)] No file for 80000320
OnResourceResponse: Status: None
OnResourceLoadComplete: Status: None
rodrigobarros
Techie
 
Posts: 13
Joined: Wed Nov 02, 2016 1:52 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 100 guests