title: Failed to Decode Response from Marionette in selenium using geckodriver and Freebsd
body: <p>i have problem with reading data with selenium.
  In my pc working code fine, with microsoft edge. But then i get task set up it on freebsd.
  So i try to use geckodriver now its working with firefox.</p>
  <p><code>Firefox version 83</code>, <code>geckodriver 0.26.0</code>, with 0.28 version i got error <code>OSError: [Errno 8] Exec format error:</code></p>
  <p>So now im getting error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;skriptas.py&quot;, line 21, in &lt;module&gt;
      obj.testmethod()
    File &quot;skriptas.py&quot;, line 17, in testmethod
      allheader=WebDriverWait(driver,20).until(expected.visibility_of_all_elements_located((By.CSS_SELECTOR,&quot;li[class='result-item'] .result-name-area&gt;.result-name&quot;)))
    File &quot;/home/MyUserName/.local/lib/python3.7/site-packages/selenium/webdriver/support/wait.py&quot;, line 71, in until
      value = method(self._driver)
    File &quot;/home/MyUserName/.local/lib/python3.7/site-packages/selenium/webdriver/support/expected_conditions.py&quot;, line 189, in __call__
      elements = _find_elements(driver, self.locator)
    File &quot;/home/MyUserName/.local/lib/python3.7/site-packages/selenium/webdriver/support/expected_conditions.py&quot;, line 422, in _find_elements
      raise e
    File &quot;/home/MyUserName/.local/lib/python3.7/site-packages/selenium/webdriver/support/expected_conditions.py&quot;, line 420, in _find_elements
      return driver.find_elements(*by)
    File &quot;/home/MyUserName/.local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py&quot;, line 1007, in find_elements
      'value': value})['value'] or []
    File &quot;/home/MyUserName/.local/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py&quot;, line 321, in execute
      self.error_handler.check_response(response)
    File &quot;/home/MyUserName/.local/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py&quot;, line 242, in check_response
      raise exception_class(message, screen, stacktrace)
  selenium.common.exceptions.WebDriverException: Message: Failed to decode response from marionette
  </code></pre>
  <p>my code</p>
  <pre><code>from selenium.webdriver import Firefox
  from selenium.webdriver.common.by import By
  from selenium.webdriver.common.keys import Keys
  from selenium.webdriver.firefox.options import Options
  from selenium.webdriver.support import expected_conditions as expected
  from selenium.webdriver.support.wait import WebDriverWait
  
  
  class runTest():
      def testmethod(self):
          path='/home/MyUserName/skriptas/forGeckodriver/geckodriver'
  
          options = Options()
          options.add_argument('-headless')
          driver = Firefox(executable_path=path, options=options)
          driver.get(&quot;https://www.verivox.de/stromvergleich/vergleich/#/?plz=10555&amp;persons=on&amp;usage=3500&amp;bonus=OnlyCompliant&amp;profile=H0&amp;product=electricity&amp;source=1&amp;q=WzYsMCwxLDEsMSwxLDEsMiwyMCwwLDEsNzQxMTIyLCI3MTA4NSIsMSwyNDAsMjQwLDM1MDAsMCwwLDAsOTk5LC0xLC0xLC0xLDAsMCwiVG90YWxDb3N0cyIsIkFzY2VuZGluZyIsIk5vbmUiLDM4LCJBbm51YWxDb3N0VmlldyIsMF0%3D&amp;partnerid=1&quot;)
          allheader=WebDriverWait(driver,20).until(expected.visibility_of_all_elements_located((By.CSS_SELECTOR,&quot;li[class='result-item'] .result-name-area&gt;.result-name&quot;)))
          for header in allheader:
              print(&quot;Header: &quot; + header.text)
  obj = runTest()
  obj.testmethod()
  </code></pre>
  <p>Any know where is problem? Please help me, im stuck right now</p>
  <p>EDITED
  Add geckodriver.log</p>
  <pre><code>1606147335757   mozrunner::runner   INFO    Running command: &quot;/usr/local/bin/firefox&quot; &quot;-marionette&quot; &quot;-headless&quot; &quot;-foreground&quot; &quot;-no-remote&quot; &quot;-profile&quot; &quot;/tmp/rust_mozprofileJmvJgF&quot;
  *** You are running in headless mode.
  console.warn: SearchSettings: &quot;get: No settings file exists, new profile?&quot; (new Error(&quot;&quot;, &quot;(unknown module)&quot;))
  console.warn: services.settings: Could not determine network status. Message: TypeError: Cc[aContract] is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  1606147376842   Marionette  INFO    Listening on port 54093
  1606147378900   Marionette  WARN    TLS certificate errors will be ignored for this session
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  Exiting due to channel error.
  Exiting due to channel error.
  Exiting due to channel error.
  1606156761595   mozrunner::runner   INFO    Running command: &quot;/usr/local/bin/firefox&quot; &quot;-marionette&quot; &quot;-headless&quot; &quot;-foreground&quot; &quot;-no-remote&quot; &quot;-profile&quot; &quot;/tmp/rust_mozprofile4c8wsu&quot;
  *** You are running in headless mode.
  console.warn: SearchSettings: &quot;get: No settings file exists, new profile?&quot; (new Error(&quot;&quot;, &quot;(unknown module)&quot;))
  console.warn: services.settings: Could not determine network status. Message: TypeError: Cc[aContract] is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  1606156799481   Marionette  INFO    Listening on port 11622
  1606156803889   Marionette  WARN    TLS certificate errors will be ignored for this session
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  Exiting due to channel error.
  Exiting due to channel error.
  Exiting due to channel error.
  1606156945032   mozrunner::runner   INFO    Running command: &quot;/usr/local/bin/firefox&quot; &quot;-marionette&quot; &quot;-headless&quot; &quot;-foreground&quot; &quot;-no-remote&quot; &quot;-profile&quot; &quot;/tmp/rust_mozprofileJ99d7Z&quot;
  *** You are running in headless mode.
  console.warn: SearchSettings: &quot;get: No settings file exists, new profile?&quot; (new Error(&quot;&quot;, &quot;(unknown module)&quot;))
  console.warn: services.settings: Could not determine network status. Message: TypeError: Cc[aContract] is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  1606156976247   Marionette  INFO    Listening on port 35003
  1606156978342   Marionette  WARN    TLS certificate errors will be ignored for this session
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  Exiting due to channel error.
  Exiting due to channel error.
  Exiting due to channel error.
  1606206490143   mozrunner::runner   INFO    Running command: &quot;/usr/local/bin/firefox&quot; &quot;-marionette&quot; &quot;-headless&quot; &quot;-foreground&quot; &quot;-no-remote&quot; &quot;-profile&quot; &quot;/tmp/rust_mozprofileiprRHB&quot;
  *** You are running in headless mode.
  console.warn: SearchSettings: &quot;get: No settings file exists, new profile?&quot; (new Error(&quot;&quot;, &quot;(unknown module)&quot;))
  console.warn: services.settings: Could not determine network status. Message: TypeError: Cc[aContract] is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  1606206545550   Marionette  INFO    Listening on port 40209
  1606206554386   Marionette  WARN    TLS certificate errors will be ignored for this session
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  JavaScript error: , line 0: uncaught exception: Object
  Exiting due to channel error.
  Exiting due to channel error.
  Exiting due to channel error.
  1606207117587   mozrunner::runner   INFO    Running command: &quot;/usr/local/bin/firefox&quot; &quot;-marionette&quot; &quot;-headless&quot; &quot;-foreground&quot; &quot;-no-remote&quot; &quot;-profile&quot; &quot;/tmp/rust_mozprofileqKfzHk&quot;
  *** You are running in headless mode.
  console.warn: SearchSettings: &quot;get: No settings file exists, new profile?&quot; (new Error(&quot;&quot;, &quot;(unknown module)&quot;))
  console.warn: services.settings: Could not determine network status. Message: TypeError: Cc[aContract] is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  console.warn: services.settings: Could not determine network status. Message: TypeError: gNetworkLinkService is undefined
  1606207165342   Marionette  INFO    Listening on port 57742
  1606207167633   Marionette  WARN    TLS certificate errors will be ignored for this session
  Exiting due to channel error.
  Exiting due to channel error.
  Exiting due to channel error.
  </code></pre>