Comments (12)
I have the same issue
from chrome-headless-browser-docker.
Can you provide more details? Are you having this issue in the chrome version or the selenium version?
from chrome-headless-browser-docker.
This seems to be a known issue with Chrome 66, but I'm struggling to find how to workaround it, more details:
puppeteer/puppeteer#2242
OnetapInc/chromy#110
from chrome-headless-browser-docker.
The only suitable workaround I've found is to pin to the last known version of chrome where this problem didn't exist yukinying/chrome-headless-browser:65.0.3322.3
from chrome-headless-browser-docker.
@yukinying any possible way to use proxy inside the image? proxy catches incoming requests and send to chrome instance, the proxy and chrome instance in the same docker container
from chrome-headless-browser-docker.
@hbakhtiyor Also you can map docker host IP to /etc/hosts and connect to a chrome instance via created host name, this issue about only if you use IP
from chrome-headless-browser-docker.
hi @wholegroup, the issue is that the same ip address uses for many subdomains (which has different instances)
from chrome-headless-browser-docker.
@hbakhtiyor I can't see your configuration, but still I don't see any problems.
before
ws://172.0.0.1:9223/devtools/page/FF3312E555CDEADBC3759BF0DE46B72B
after
ws://host-172-0-0-1:9223/devtools/page/FF3312E555CDEADBC3759BF0DE46B72B
/etc/hosts on a client
172.0.0.1 host-172-0-0-1
It is almost the same.
from chrome-headless-browser-docker.
same issue with chromium 72 when a request by domain.
with ip ok,
http://51.145.11.246:9222
from chrome-headless-browser-docker.
bool RequestIsSafeToServe(const net::HttpServerRequestInfo& info) {
// For browser-originating requests, serve only those that are coming from
// pages loaded off localhost or fixed IPs.
std::string header = info.headers["host"];
if (header.empty())
return true;
GURL url = GURL("http://" + header);
return url.HostIsIPAddress() || net::IsLocalHostname(url.host(), nullptr);
}
if (!RequestIsSafeToServe(info)) {
Send500(connection_id,
"Host header is specified and is not an IP address or localhost.");
return;
}
why domain not safe?
from chrome-headless-browser-docker.
Hello,
I was stuck at this problem as well until I found a workaround for it.
so my workaround was to override the host header and set it to localhost the replace the actual host by localhost on webSocketDebuggerUrl
my implementation on Golang for this workaround:
chromedp/chromedp#505 (comment)
from chrome-headless-browser-docker.
I am running into this issue when attempting to load balance NGINX upstream to a set of chrome headless pods. I am invoking the CDP commands externally from a different docker container. @m7shapan can you advise on where exactly the above workaround can be implemented? alternatively, Is there any flag directly that can resolve this in the more recent releases?
from chrome-headless-browser-docker.
Related Issues (20)
- Pages not rendering with newest version of Chrome HOT 2
- error while loading shared libraries: libgconf-2.so.4 HOT 2
- Upgrade OS image and driver to latest version
- Provide a stable chrome version, too HOT 2
- How to access vagrant web server from the container? HOT 1
- chrome crashed after the first round testing HOT 3
- Error During Build HOT 7
- cant pass parameters into the chrome drive for image: Chrome Headless Browser with Chrome Driver in Selenium HOT 1
- docker.for.mac.localhost not connecting from inspector HOT 3
- Debian stable is now bullseye HOT 4
- Image doesn't work on M1 Macs HOT 18
- WebGL disabled in chrome-headless-browser-stable image HOT 5
- E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied) HOT 1
- Container failing to boot HOT 4
- In CasaOS, there is a certain chance that it cannot be opened normally.
- Can't use with M2 Mac HOT 5
- Downloading files not working as expected HOT 7
- dbus errors when running chrome-headless-browser-stable (M2 Mac) HOT 1
- Unable to connect to chrome over websocket url HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chrome-headless-browser-docker.