Save as HAR file with content not working

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.

Save as HAR file with content not working

Postby mezdej » Tue Sep 18, 2018 2:53 am

Save as HAR file with content is not working in dev tools.

In DebugView there is a log entry
[8740] [0918/094941.726:ERROR:CONSOLE(109)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/inspector.js (109)


How to make it work?

CEF 3.3112.1656.g9ec3e42
Chromium 60.0.3112.90
OS Windows
WebKit 537.36 (@e6ccc355a03184b2a4fa2b22bd15b89324d6a137)
JavaScript 6.0.286.52
mezdej
Techie
 
Posts: 31
Joined: Tue Oct 22, 2013 3:56 am

Re: Save as HAR file with content not working

Postby Czarek » Wed Sep 19, 2018 6:59 am

Can you reproduce the issue with cefclient? When googling error I've found this: https://github.com/electron/electron/issues/12185 . It states that the issue reproduces in a specific scenario. What is your use case?
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: Save as HAR file with content not working

Postby mezdej » Thu Sep 20, 2018 1:51 am

For me "Save as HAR file with content" does not work even in "cefsimple" (with added minimal code to show dev tools).
mezdej
Techie
 
Posts: 31
Joined: Tue Oct 22, 2013 3:56 am

Re: Save as HAR file with content not working

Postby mezdej » Tue Sep 25, 2018 1:20 am

I have downloaded cef_binary_3.3497.1833.g13f506f_windows32_client and in cef client "Save as HAR file" is doing nothing...
mezdej
Techie
 
Posts: 31
Joined: Tue Oct 22, 2013 3:56 am

Re: Save as HAR file with content not working

Postby Czarek » Tue Sep 25, 2018 2:39 am

This feature is not available in CEF devtools popup, however you can save it as HAR file by using remote debugging and a Google Chrome instance. Here are the steps:

1. In Google Chrome browser open "chrome://inspect" url and click "Open dedicated DevTools for Node"
2. Add "localhost:1234" connection and close the popup window
3. Run `cefclient --remote-debugging-port=1234` (it sets CefSettings.remote_debugging_port)
4. Refresh the "chrome://inspect" page in Google Chrome browser
5. You should see a new target on the Remote Target list. Click "inspect" link for this target and then follow the usual steps for saving as HAR file.
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


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 51 guests