-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StatusCodeError: 500 - "Host header is specified and is not an IP address or localhost." #4
Comments
Hi guys, I ran into the same error . |
@hadrien-toma , please refer to this one : |
@markxtji I am new to docker, can you be more specific or provide working example? thanks! |
I got it!
|
Yes, it fails with this error:
There seems to be a workaround for this issue here: puppeteer/issues/2242 |
Thanks for reporting this. I am getting this too and will look to get it corrected shortly! |
I've added a workaround for this issue now until puppeteer / chromium team present a better solution. If someone could please confirm this resolves the issue then I can close this, or let me know if the issue persists. Thanks. |
Yes, it works. Thanks! |
Another solution to this, if you want to avoid the extra JS dependencies, is to install e.g., in the app container (assuming it's based on debian/ubuntu), ...
RUN apt-get update -qq && apt-get install -yy curl dnsutils
CMD ["/bin/bash", "start.sh"] # start.sh
#!/usr/bin/env bash
export CHROME_IP="$(dig +short chrome | tr -d '[[:space:]]')"
echo "CHROME_IP set to $CHROME_IP"
exec node run_tests.js |
Work done
What I am doing is simply cloning the repository, going into it, editing
index.js
in order to have the details about the error I have, then runningdocker-compose up
.Logs got
Question
Does someone know what am I doing wrong?
Environment
Ubuntu 16.04
docker-compose version 1.18.0
The text was updated successfully, but these errors were encountered: