Open hfjallemark opened 5 years ago
Hi @hfjallemark. 👋
This is a tough issue because Chrome isn't sending back enough information in its error log message to be useful. It sounds like Chrome is running into a javascript error in CI, but we may need to do more investigation to see if Wallaby can raise a more complete error message.
In the meantime, you could temporarily update your config to
config :wallaby,
driver: Wallaby.Experimental.Chrome,
js_errors: false
to get CI to pass until you figure out what JS error might be occurring. I know this is less than ideal, but hopefully it will get you unstuck.
Yep that’s what I did and then it worked. It’s weird that I only get this error in Heroku CI — is there any way to debug further what the issue may be?
@aaronrenner any idea how to dig deeper into this? It's strange because it works perfectly fine locally.
@hfjallemark I'll do a bit of research to see we can expose more lines of that log message.
Hey @aaronrenner, were you able to expose some more log messages?
@hfjallemark, I put some IO.inspect/1
statements in the wallaby code locally, but it turns out the "uncaught ... " message is all that chromedriver is returning. :disappointed:
%{
"level" => "SEVERE",
"message" => "http://localhost:38277/errors.html 15:8 Uncaught",
"source" => "javascript",
"timestamp" => 1580875317342
}
Unfortunately, the WebDriver logging endpoint is not even part of the newer W3C webdriver spec, and fails when chromedriver is running in W3C mode. I wish I had better news here... Would it be possible to switch back to phantomjs temporarily to see if it would give you more info on the error?
I’ll give that a try and see. Weird thing is that the same code works locally (macOS) with Chromedriver but not on Heroku (Ubuntu I believe).
Issue
I am getting a weird error when running Wallaby with ChromeDriver on Heroku CI:
Locally everything works. I tried using both stable and beta channels for Chrome and ChromeDriver on Heroku. Also tried disabling all JavaScripts but still getting the same issue. Any ideas what I could be doing wrong?
Test Code & HTML
Test:
Configuration: