1

I'm getting the following error:

DevTools listening on ws://127.0.0.1:49722/devtools/browser/e3cdef84-2a4f-4829-8cb2-4baf45efa446
[0903/065243.722:ERROR:command_buffer_proxy_impl.cc(122)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.

When setting ChromeDriver as the webdriver:

options = webdriver.ChromeOptions()
options.add_argument("headless")
options.add_argument("--blink-settings=imagesEnabled=false")
options.add_argument("--log-level=3")
options.add_argument("--ignore-certificate-errors")
options.add_argument("--ignore-ssl-errors")
options.add_argument("no-sandbox")
self.driver = webdriver.Chrome(CHROME_DRIVER, chrome_options=options)

The rest of the scraping script seems to run fine. Should I be concerned? Is there a way to ensure this doesn't come up?

Jossy
  • 589
  • 2
  • 12
  • 36

1 Answers1

2

While I'm trying to fix my own problems with headless Chrome, I stumbled over your question.

Adding --disable-gpu to the arguments will disable GPU-based/assisted rendering and only use a software render.

This solved the problem with that error message for me.

You'll find an extensive list of command line switches here: https://peter.sh/experiments/chromium-command-line-switches/

flomei
  • 860
  • 1
  • 11
  • 36