headless error only in production

90 views
Skip to first unread message

Dan C

unread,
Jun 5, 2023, 10:06:43 AM6/5/23
to ChromeDriver Users
hi all, any help with the below would be greatly appreciated. 

I am having a very strange bug with selenium, chromedriver and chrome in headless mode - it starts happening out of nowhere in production, messages like the below are displayed in the chrome logs, and then the website navigation of course stops working as expected. This never happened with exactly the same code when I run it locally. Any ideas?

[1685971678.738][DEBUG]: DevTools WebSocket Event: Log.entryAdded (session_id=BBE409974EEE624B895F8173EAB66E63) 1720FDBBCF100BE28780A3646C3F3EC9 {
   "entry": {
      "level": "error",
      "networkRequestId": "164645.55",
      "source": "network",
      "text": "Failed to load resource: net::ERR_BLOCKED_BY_RESPONSE.NotSameOrigin",
      "timestamp": 1.685971678735199e+12,
      "url": "https://cdn01.jotfor.ms/css/responsive.css?3.3.42410"
   }
}

note: I am starting chrome with the following options. I started with only 4, and it all used to work fine up until a few days ago. I then updated chrome and chromedriver to 114, and this fixed the problem for a few days. Now it is happening again.

options = gcOptions()
            options.add_argument('--no-sandbox')
            options.add_argument('--ignore-certificate-errors')
            options.add_argument('--disable-dev-shm-usage')
            options.add_argument('--headless')

      #these were added during my tests with this issue
            options.add_argument("--disable-gpu")
            options.add_argument("--no-proxy-server")
            options.add_argument("--proxy-server='direct://'")
            options.add_argument("--proxy-bypass-list=*")
            options.add_argument("--remote-allow-origins=*")
            options.add_argument("--incognito")


Reply all
Reply to author
Forward
0 new messages