'browsermob proxy -2.1.5 - getting ClientToProxyConnection:321 - (AWAITING_INITIAL) error

I have to read response payload from network logs.

I have successfully created snippets and HAR is getting generated too but I am getting below error:

2022-05-05 14:21:02 INFO  ClientToProxyConnection:321 - (AWAITING_INITIAL) [id: 0x6cfd843d, L:/0:0:0:0:0:0:0:1:63991 - R:/0:0:0:0:0:0:0:1:64007]: Bad Host accounts.google.com:443

Due to which it's not returning the data, only JS, styles are available in HAR file.

<dependency>
      <groupId>net.lightbody.bmp</groupId>
      <artifactId>browsermob-core</artifactId>
      <version>${browsermob.version}</version>
</dependency>

where ${browsermob.version} is 2.1.5

Executing above on Chrome browser.

Tried solutions:

  1. updated snapshot from bmp forcefully
  2. Downgraded the bmp
  3. Change the port


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source