cyrus-and / chrome-har-capturer

Capture HAR files from a Chrome instance
MIT License
530 stars 90 forks source link

Error: socket hang up #85

Closed jsw-zorro closed 3 years ago

jsw-zorro commented 3 years ago

I tried to use this tool to save the HAR file in an Android Chrome. I follow these steps:

Do you have any ideas, which step I should add to save the HAR files from the Android Device?

cyrus-and commented 3 years ago

Maybe #63?

jsw-zorro commented 3 years ago

I just tried with -k option. But still nothing happens. The error shows socket hang up.

jsw-zorro commented 3 years ago

Also after I set the adb forward, I try with curl http://localhost:9222/json/protocol But there is no response. Do you have any idea on what's happening?

cyrus-and commented 3 years ago

Give it a try, it should work now.

Do you have any idea on what's happening?

Yeah, there is no protocol descriptor in Chrome for Android ("to save space"...).

jsw-zorro commented 3 years ago

Give it a try, it should work now.

Do you have any idea on what's happening?

Yeah, there is no protocol descriptor in Chrome for Android ("to save space"...).

It now shows failed to create browser context.

cyrus-and commented 3 years ago

You have to use -k, see #63.

jsw-zorro commented 3 years ago

I see. It works now! Thanks!