adieuadieu/serverless-chrome

unexpected EOF, launch headless chromium with go

Closed this issue · 2 comments

Hello,

I try to use chrome headless on lambda via go but always have this error on Cloudwatch,
Does someone have an idea ?

Screenshot 2019-09-04 at 08 51 10

I used different stable versions and I still have this result with or without option at the launch of the headless chromium

okok after some comments on options and tried older than v1.0.0-50 (why ? newer than 50 chrome don't want to start) :

	path += " --headless"
	path += " --disable-gpu"
	// path += " --window-size=1280x1696"
	// path += " --disable-application-cache"
	// path += " --disable-infobars"
	path += " --no-sandbox"
	// path += " --hide-scrollbars"
	// path += " --enable-logging"
	// path += " --log-level=0"
	path += " --single-process"
	//path += " --ignore-certificate-errors"
	path += " --homedir=/tmp"
	path += " --data-path=/tmp/data-path"
	path += " --disk-cache-dir=/tmp/cache-dir"
	path += " --remote-debugging-port=9222"

some informaion found on different tutorials was not revealing in this case. By sticking to the options suggest here this seems to get better.

I work on a second problem, I would share my code as soon as it is ok.

Screenshot 2019-09-04 at 09 30 03

no solution found, I switched to cloud run, with docker & live chrome installation on a container controlled and chosen