Open kazurayam opened 1 year ago
In the issues list of the kklisura's project, I found a similar issue:
https://github.com/kklisura/chrome-devtools-java-client/issues/71
In their post, I was interested to find a message:
[0926/110742.491845:ERROR:devtools_http_handler.cc(636)] Using unsafe HTTP verb GET to invoke /json/new. This action will stop supporting GET and POST verbs in future versions.
There seems to be a problem in between Chrome browser and the kklisura's code.
According to the Git log of this repository, the Test Case worked at 6th Oct 2021. It's a year and half ago. Old enough!
The version my Chrome browser is 113.0.5672.92 currently.
The Katlaon's plugin uses v2.1.0 of kklisura's library
https://github.com/kklisura/chrome-devtools-java-client/releases/tag/v2.1.0
I guess that, since Oct 2021, Chrome browser has changed itself somehow, which caused my script (including the kklisura's code) to fail.
I don't think I can debug the kklisura's code.
I will leave this issue ...
Related to "unsafe HTTP verb GET to invoke /json/new" issue, I found the following post
https://github.com/oblador/loki/issues/442
This implies that com.github.kklisura.cdt
library requires a similar change for fix
What needs to be done to fix the "unsafe HTTP verb GET to invoke /json/new" issue in the com.github.kklisura.cdt
library?
I had a look at the source code.
I found that it uses org.glassfish.tyrus.container.grizzly/client/GrizzlyClientContainer class to drive a WebSocket connection.
Which version of the tyrus jar is used?
https://github.com/kklisura/chrome-devtools-java-client/blob/master/cdt-java-client/pom.xml
<tyrus.version>1.13.1</tyrus.version>
...
<dependency>
<groupId>org.glassfish.tyrus</groupId>
<artifactId>tyrus-container-grizzly-client</artifactId>
<version>${tyrus.version}</version>
</dependency>
Is the version 1.13.1 of the tyrus library up-to-date?
https://mvnrepository.com/artifact/org.glassfish.tyrus/tyrus-container-grizzly-client
No. v1.13.1 of tyrus is very old.
I am afraid that the v1.13.1 of the tyrus library can not cope with the current version of browsers; never it can.
So the kklisura's chrome devtools java client library needs a great overhauling. It needs to upgrade external dependences, especially Tyrus Grizzly Client Container, to cope with the current version of browsers.
This is a difficult task. I am not capable of overhauling the kklisura's chrome devtools java client library.
I am not willing to be involved in overhauling the kklisura's chrome devtools java client library.
Rather I would try using Playwright to write a code in Typescript to listen to Console log of Chrome browser. Possibly it will work no problem.
using the version 0.2.0 of this project, I tried to run "Test Cases/Listen to Console log", I got the following error.