[英]HTTP request to HTTPS server exception webdrivermanager-java docker Jenkins
I'm trying to setup Bonigarcia webdrivermanager java with a chrome browser in a docker container on a jenkins CI server.我正在尝试在 jenkins CI 服务器上的 docker 容器中使用 chrome 浏览器设置 Bonigarcia webdrivrmanager java。 Webdrivermanager is unable to pull the docker image from Docker Hub. Webdrivermanager 无法从 Docker Hub 拉取 docker 图像。 I have version 5.1.0 of webdrivermanager.我有 5.1.0 版的 webdrivermanager。 I get the following exception:我得到以下异常:
10:26:22.110 [main] INFO io.github.bonigarcia.wdm.docker.DockerService - Pulling Docker image selenoid/vnc:chrome_99.0 (this might take some time, but only the first time)
10:26:22.225 [docker-java-stream-550739255] ERROR com.github.dockerjava.api.async.ResultCallbackTemplate - Error during callback
com.github.dockerjava.api.exception.BadRequestException: Status 400: Client sent an HTTP request to an HTTPS server.
at com.github.dockerjava.core.DefaultInvocationBuilder.execute(DefaultInvocationBuilder.java:237)
at com.github.dockerjava.core.DefaultInvocationBuilder.lambda$executeAndStream$1(DefaultInvocationBuilder.java:269)
at java.lang.Thread.run(Thread.java:748)
10:26:22.225 [main] WARN io.github.bonigarcia.wdm.docker.DockerService - Exception pulling image selenoid/vnc:chrome_99.0: Status 400: Client sent an HTTP request to an HTTPS server.
The is my webdrivermanager setup:这是我的 webdrivermanager 设置:
WebDriverManager
.chromedriver()
.browserInDocker()
.create();
I already tried the following but I still get the same exception:我已经尝试了以下但我仍然遇到相同的异常:
Any ideas what could be wrong or what else I could try?任何想法可能是错误的或我还可以尝试什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.