Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create virtual authenticator; response is 405 HTTP method not allowed #2187

Open
ecbypi opened this issue Jul 11, 2024 · 7 comments
Open

Comments

@ecbypi
Copy link

ecbypi commented Jul 11, 2024

I get this error when testing using Capybara in a Rails app, but I am able to reproduce the error (405 HTTP method not allowed) when starting geckodriver manually and running curl commands.

When using --log trace to start geckodriver, nothing is logged on the request to create the virtual authenticator.

Please let me know if anything is missing.

System

  • Version: 0.34.0
  • Platform: macOS Sonoma 14.5 ARM
  • Firefox: 128.0 (64-bit)
  • Selenium: ruby v3.3.3, selenium 4.22.0

Testcase

geckodriver -b /Applications/Firefox.app/Contents/MacOS/firefox --log trace
# => 1720726945422   geckodriver     INFO    Listening on 127.0.0.1:4444
curl -X POST -d @options.json -H 'Content-Type: application/json' 127.0.0.1:4444/session
# => {"value":{"sessionId":"1bf86513-30fb-420a-80a0-ae3a97032178" ...


curl -X POST -vvv -d @authenticator.json -H 'Content-Type: application/json' 127.0.0.1:4444/session/1bf86513-30fb-420a-80a0-ae3a97032178/webauthn/authenticator
* Uses proxy env variable no_proxy == '*'
*   Trying 127.0.0.1:4444...
* Connected to 127.0.0.1 (127.0.0.1) port 4444
> POST /session/06161a48-9ecd-4e18-986f-140d5af08610/webauthn/authenticator HTTP/1.1
> Host: 127.0.0.1:4444
> User-Agent: curl/8.6.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 132
>
< HTTP/1.1 405 Method Not Allowed
< content-type: text/plain; charset=utf-8
< content-length: 23
< date: Thu, 11 Jul 2024 19:53:12 GMT
<
* Connection #0 to host 127.0.0.1 left intact
HTTP method not allowed

options.json:

{
  "capabilities": {
    "alwaysMatch": {
      "acceptInsecureCerts": true,
      "browserName": "firefox",
      "moz:firefoxOptions": {
        "args": [
          "-headless"
        ],
        "prefs": {
          "remote.active-protocols": 3
        }
      },
      "moz:debuggerAddress": true
    }
  }
}

authenticator.json:

{
  "protocol": "ctap2",
  "transport": "usb",
  "hasResidentKey": true,
  "hasUserVerification": true,
  "isUserConsenting": true,
  "isUserVerified": true
}

Stacktrace

Trace-level log

1720727397614	geckodriver	INFO	Listening on 127.0.0.1:4444
1720727411868	webdriver::server	DEBUG	-> POST /session {"capabilities":{"alwaysMatch":{"acceptInsecureCerts":true,"browserName":"firefox","moz:firefoxOptions":{"args":["-headless"],"prefs":{"remote.active-protocols":3}},"moz:debuggerAddress":true}}}
1720727411868	geckodriver::capabilities	DEBUG	Trying to read firefox version from ini files
1720727411870	geckodriver::capabilities	DEBUG	Found version 128.0
1720727411877	mozrunner::runner	INFO	Running command: MOZ_CRASHREPORTER="1" MOZ_CRASHREPORTER_NO_REPORT="1" MOZ_CRASHREPORTER_SHUTDOWN="1" MOZ_NO_REMOTE="1" "/App ... s" "localhost" "-foreground" "-no-remote" "-profile" "/var/folders/nx/8zd7ck8914g_xc0hdgpycf8w0000gn/T/rust_mozprofileWxKoBe"
1720727411878	geckodriver::marionette	DEBUG	Waiting 60s to connect to browser on 127.0.0.1
1720727411878	geckodriver::browser	TRACE	Failed to open /var/folders/nx/8zd7ck8914g_xc0hdgpycf8w0000gn/T/rust_mozprofileWxKoBe/MarionetteActivePort
1720727411878	geckodriver::marionette	TRACE	Retrying in 100ms
1720727411983	geckodriver::browser	TRACE	Failed to open /var/folders/nx/8zd7ck8914g_xc0hdgpycf8w0000gn/T/rust_mozprofileWxKoBe/MarionetteActivePort
1720727411983	geckodriver::marionette	TRACE	Retrying in 100ms
console.warn: services.settings: Ignoring preference override of remote settings server
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
1720727412088	geckodriver::browser	TRACE	Failed to open /var/folders/nx/8zd7ck8914g_xc0hdgpycf8w0000gn/T/rust_mozprofileWxKoBe/MarionetteActivePort
1720727412088	geckodriver::marionette	TRACE	Retrying in 100ms
1720727412156	RemoteAgent	DEBUG	Setting recommended pref apz.content_response_timeout to 60000
1720727412156	RemoteAgent	DEBUG	Setting recommended pref browser.contentblocking.introCount to 99
1720727412156	RemoteAgent	DEBUG	Setting recommended pref browser.download.panel.shown to true
1720727412156	RemoteAgent	DEBUG	Setting recommended pref browser.newtabpage.activity-stream.discoverystream.region-weather-config to 
1720727412156	RemoteAgent	DEBUG	Setting recommended pref browser.newtabpage.activity-stream.newtabWallpapers.enabled to false
1720727412156	RemoteAgent	DEBUG	Setting recommended pref browser.newtabpage.activity-stream.showSponsoredTopSites to false
1720727412156	RemoteAgent	DEBUG	Setting recommended pref browser.newtabpage.enabled to false
1720727412156	RemoteAgent	DEBUG	Setting recommended pref browser.pagethumbnails.capturing_disabled to true
1720727412156	RemoteAgent	DEBUG	Setting recommended pref browser.region.network.url to 
1720727412156	RemoteAgent	DEBUG	Setting recommended pref browser.safebrowsing.blockedURIs.enabled to false
1720727412157	RemoteAgent	DEBUG	Setting recommended pref browser.safebrowsing.downloads.enabled to false
1720727412157	RemoteAgent	DEBUG	Setting recommended pref browser.safebrowsing.malware.enabled to false
1720727412158	RemoteAgent	DEBUG	Setting recommended pref browser.safebrowsing.phishing.enabled to false
1720727412158	RemoteAgent	DEBUG	Setting recommended pref browser.search.update to false
1720727412158	RemoteAgent	DEBUG	Setting recommended pref browser.startup.couldRestoreSession.count to -1
1720727412158	RemoteAgent	DEBUG	Setting recommended pref browser.tabs.remote.unloadDelayMs to 0
1720727412158	RemoteAgent	DEBUG	Setting recommended pref browser.tabs.unloadOnLowMemory to false
1720727412158	RemoteAgent	DEBUG	Setting recommended pref browser.tabs.warnOnClose to false
1720727412158	RemoteAgent	DEBUG	Setting recommended pref browser.tabs.warnOnCloseOtherTabs to false
1720727412158	RemoteAgent	DEBUG	Setting recommended pref browser.tabs.warnOnOpen to false
1720727412158	RemoteAgent	DEBUG	Setting recommended pref browser.toolbars.bookmarks.visibility to never
1720727412158	RemoteAgent	DEBUG	Setting recommended pref browser.topsites.contile.enabled to false
1720727412158	RemoteAgent	DEBUG	Setting recommended pref browser.usedOnWindows10.introURL to 
1720727412158	RemoteAgent	DEBUG	Setting recommended pref browser.urlbar.merino.endpointURL to 
1720727412158	RemoteAgent	DEBUG	Setting recommended pref browser.urlbar.suggest.searches to false
1720727412158	RemoteAgent	DEBUG	Setting recommended pref datareporting.policy.dataSubmissionPolicyAccepted to false
1720727412158	RemoteAgent	DEBUG	Setting recommended pref dom.disable_open_during_load to false
1720727412158	RemoteAgent	DEBUG	Setting recommended pref dom.file.createInChild to true
1720727412158	RemoteAgent	DEBUG	Setting recommended pref dom.input_events.security.minNumTicks to 0
1720727412158	RemoteAgent	DEBUG	Setting recommended pref dom.input_events.security.minTimeElapsedInMS to 0
1720727412158	RemoteAgent	DEBUG	Setting recommended pref dom.max_chrome_script_run_time to 0
1720727412158	RemoteAgent	DEBUG	Setting recommended pref dom.max_script_run_time to 0
1720727412158	RemoteAgent	DEBUG	Setting recommended pref dom.navigation.locationChangeRateLimit.count to 0
1720727412158	RemoteAgent	DEBUG	Setting recommended pref dom.push.connection.enabled to false
1720727412158	RemoteAgent	DEBUG	Setting recommended pref dom.screenorientation.allow-lock to true
1720727412158	RemoteAgent	DEBUG	Setting recommended pref dom.successive_dialog_time_limit to 0
1720727412158	RemoteAgent	DEBUG	Setting recommended pref extensions.getAddons.cache.enabled to false
1720727412158	RemoteAgent	DEBUG	Setting recommended pref extensions.getAddons.discovery.api_url to data:, 
1720727412158	RemoteAgent	DEBUG	Setting recommended pref extensions.blocklist.detailsURL to http://%(server)s/extensions-dummy/blocklistDetailsURL
1720727412158	RemoteAgent	DEBUG	Setting recommended pref extensions.blocklist.itemURL to http://%(server)s/extensions-dummy/blocklistItemURL
1720727412158	RemoteAgent	DEBUG	Setting recommended pref extensions.hotfix.url to http://%(server)s/extensions-dummy/hotfixURL
1720727412158	RemoteAgent	DEBUG	Setting recommended pref extensions.systemAddon.update.url to http://%(server)s/dummy-system-addons.xml
1720727412158	RemoteAgent	DEBUG	Setting recommended pref extensions.update.background.url to http://%(server)s/extensions-dummy/updateBackgroundURL
1720727412158	RemoteAgent	DEBUG	Setting recommended pref extensions.update.url to http://%(server)s/extensions-dummy/updateURL
1720727412158	RemoteAgent	DEBUG	Setting recommended pref extensions.getAddons.get.url to http://%(server)s/extensions-dummy/repositoryGetURL
1720727412158	RemoteAgent	DEBUG	Setting recommended pref extensions.getAddons.search.browseURL to http://%(server)s/extensions-dummy/repositoryBrowseURL
1720727412158	RemoteAgent	DEBUG	Setting recommended pref geo.provider.network.url to 
1720727412158	RemoteAgent	DEBUG	Setting recommended pref identity.fxaccounts.auth.uri to https://{server}/dummy/fxa
1720727412158	RemoteAgent	DEBUG	Setting recommended pref network.connectivity-service.enabled to false
1720727412158	RemoteAgent	DEBUG	Setting recommended pref network.http.phishy-userpass-length to 255
1720727412159	RemoteAgent	DEBUG	Setting recommended pref network.http.prompt-temp-redirect to false
1720727412159	RemoteAgent	DEBUG	Setting recommended pref privacy.trackingprotection.enabled to false
1720727412159	RemoteAgent	DEBUG	Setting recommended pref remote.prefs.recommended.applied to true
1720727412159	RemoteAgent	DEBUG	Setting recommended pref security.fileuri.strict_origin_policy to false
1720727412159	RemoteAgent	DEBUG	Setting recommended pref security.notification_enable_delay to 0
1720727412159	RemoteAgent	DEBUG	Setting recommended pref security.remote_settings.intermediates.enabled to false
1720727412159	RemoteAgent	DEBUG	Setting recommended pref signon.autofillForms to false
1720727412159	RemoteAgent	DEBUG	Setting recommended pref signon.rememberSignons to false
1720727412159	RemoteAgent	DEBUG	Setting recommended pref toolkit.telemetry.server to https://%(server)s/telemetry-dummy/
1720727412159	RemoteAgent	DEBUG	Setting recommended pref widget.windows.window_occlusion_tracking.enabled to false
1720727412159	RemoteAgent	DEBUG	WebDriver BiDi enabled
1720727412159	RemoteAgent	DEBUG	CDP enabled
1720727412160	Marionette	INFO	Marionette enabled
1720727412190	geckodriver::browser	TRACE	Failed to open /var/folders/nx/8zd7ck8914g_xc0hdgpycf8w0000gn/T/rust_mozprofileWxKoBe/MarionetteActivePort
1720727412190	geckodriver::marionette	TRACE	Retrying in 100ms
1720727412293	Marionette	TRACE	Received observer notification final-ui-startup
1720727412294	RemoteAgent	TRACE	Received observer notification final-ui-startup
1720727412295	geckodriver::browser	TRACE	Failed to open /var/folders/nx/8zd7ck8914g_xc0hdgpycf8w0000gn/T/rust_mozprofileWxKoBe/MarionetteActivePort
1720727412295	geckodriver::marionette	TRACE	Retrying in 100ms
console.error: "Warning: unrecognized command line flag" "-remote-allow-hosts"
1720727412361	Marionette	INFO	Listening on port 57612
1720727412362	Marionette	DEBUG	Marionette is listening
1720727412368	RemoteAgent	TRACE	Available local IP addresses: 127.0.0.1, [::1]

!!! could not start server on port 9222: [Exception... "Component returned failure code: 0x804b0036 (NS_ERROR_SOCKET_ADDRESS_IN_USE) [nsIServerSocket.init]"  nsresult: "0x804b0036 (NS_ERROR_SOCKET_ADDRESS_IN_USE)"  location: "JS frame :: chrome://remote/content/server/httpd.sys.mjs :: _start :: line 556"  data: no]

1720727412371	RemoteAgent	ERROR	Unable to stop listener: [Exception... "Unexpected error"  nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"  location: "JS frame :: chrome://remote/content/server/httpd.sys.mjs :: stop :: line 610"  data: no] Stack trace: stop()@httpd.sys.mjs:610
#stop()@RemoteAgent.sys.mjs:353
1720727412372	RemoteAgent	ERROR	Unable to start remote agent: : [Exception... "Component is not available"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: chrome://remote/content/server/httpd.sys.mjs :: _start :: line 601"  data: no] Stack trace: _start()@httpd.sys.mjs:601
#listen()@RemoteAgent.sys.mjs:272
Read port: 57612
1720727412446	Marionette	DEBUG	Accepted connection 0 from 127.0.0.1:57613
1720727412458	geckodriver::marionette	DEBUG	Connection to Marionette established on 127.0.0.1:57612.
1720727412526	Marionette	DEBUG	0 -> [0,1,"WebDriver:NewSession",{"acceptInsecureCerts":true,"browserName":"firefox"}]
1720727412528	RemoteAgent	WARN	TLS certificate errors will be ignored for this session
1720727412528	Marionette	DEBUG	Waiting for initial application window
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1720727413160	Marionette	TRACE	Received observer notification browser-idle-startup-tasks-finished
1720727413160	RemoteAgent	TRACE	Received observer notification browser-idle-startup-tasks-finished
1720727413162	RemoteAgent	TRACE	[9] ProgressListener Start: expectNavigation=false resolveWhenStarted=false unloadTimeout=5000 waitForExplicitStart=false
1720727413162	RemoteAgent	TRACE	[9] ProgressListener Setting unload timer (5000ms)
1720727413162	RemoteAgent	TRACE	[9] Wait for initial navigation: isInitial=false, isLoadingDocument=false
1720727413162	RemoteAgent	TRACE	[9] Document already finished loading: about:blank
1720727413162	RemoteAgent	TRACE	[9] ProgressListener Stop: has error=false url=about:blank
1720727413169	Marionette	DEBUG	0 <- [1,1,null,{"sessionId":"3f63996c-5a1f-4d09-8d15-c0f1d0d3b112","capabilities":{"acceptInsecureCerts":true,"browserName":"firefox","browserVersion":"128.0","platformName":"mac","unhandledPromptBehavior":"dismiss and notify","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0","moz:buildID":"20240704121409","moz:headless":true,"moz:platformVersion":"23.5.0","moz:processID":14256,"moz:profile":"/var/folders/nx/8zd7ck8914g_xc0hdgpycf8w0000gn/T/rust_mozprofileWxKoBe","moz:shutdownTimeout":60000,"pageLoadStrategy":"normal","timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"setWindowRect":true,"strictFileInteractability":false,"moz:accessibilityChecks":false,"moz:debuggerAddress":"127.0.0.1:9222","moz:webdriverClick":true,"moz:windowless":false,"proxy":{}}}]
1720727413172	webdriver::server	DEBUG	<- 200 OK {"value":{"sessionId":"3f63996c-5a1f-4d09-8d15-c0f1d0d3b112","capabilities":{"acceptInsecureCerts":true,"browserNam ... r":"dismiss and notify","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0"}}}
@whimboo
Copy link
Collaborator

whimboo commented Jul 15, 2024

Duplicate of issue #2174.

@whimboo whimboo closed this as not planned Won't fix, can't repro, duplicate, stale Jul 15, 2024
@ecbypi
Copy link
Author

ecbypi commented Nov 21, 2024

Revisited this on my project and am still getting 405 HTTP method not allowed when trying to create a virtual authenticator.

I tried it with geckodriver v0.35.0 and the nightly using the same steps in my original issue submission.

Is there something I'm missing or supposed to be enabling in capabilities?

@whimboo
Copy link
Collaborator

whimboo commented Nov 22, 2024

@ecbypi would you mind providing a trace log?

@ecbypi
Copy link
Author

ecbypi commented Nov 22, 2024

Sorry, I should have thought to include that again. Nothing is logged in response to the curl command to create the authenticator.

Let me know if there's anything else I can include.

STDOUT

1732295490656	geckodriver	INFO	Listening on 127.0.0.1:4444
1732295534271	webdriver::server	DEBUG	-> POST /session {  "capabilities": {    "alwaysMatch": {      "acceptInsecureCerts": true,      "browserName": "firefox",    ...         ],        "prefs": {          "remote.active-protocols": 3        }      },      "moz:debuggerAddress": true    }  }}
1732295534272	geckodriver::capabilities	DEBUG	Trying to read firefox version from ini files
1732295534275	geckodriver::capabilities	DEBUG	Found version 132.0.2
1732295534278	mozrunner::runner	INFO	Running command: MOZ_CRASHREPORTER="1" MOZ_CRASHREPORTER_NO_REPORT="1" MOZ_CRASHREPORTER_SHUTDOWN="1" MOZ_NO_REMOTE="1" "/App ... s" "localhost" "-foreground" "-no-remote" "-profile" "/var/folders/nx/8zd7ck8914g_xc0hdgpycf8w0000gn/T/rust_mozprofileV8GAXg"
1732295534279	geckodriver::marionette	DEBUG	Waiting 60s to connect to browser on 127.0.0.1
1732295534279	geckodriver::browser	TRACE	Failed to open /var/folders/nx/8zd7ck8914g_xc0hdgpycf8w0000gn/T/rust_mozprofileV8GAXg/MarionetteActivePort
1732295534279	geckodriver::marionette	TRACE	Retrying in 100ms
1732295534384	geckodriver::browser	TRACE	Failed to open /var/folders/nx/8zd7ck8914g_xc0hdgpycf8w0000gn/T/rust_mozprofileV8GAXg/MarionetteActivePort
1732295534384	geckodriver::marionette	TRACE	Retrying in 100ms
console.warn: services.settings: Ignoring preference override of remote settings server
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
1732295534488	geckodriver::browser	TRACE	Failed to open /var/folders/nx/8zd7ck8914g_xc0hdgpycf8w0000gn/T/rust_mozprofileV8GAXg/MarionetteActivePort
1732295534488	geckodriver::marionette	TRACE	Retrying in 100ms
1732295534504	RemoteAgent	DEBUG	Setting recommended pref apz.content_response_timeout to 60000
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.contentblocking.introCount to 99
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.download.panel.shown to true
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.newtabpage.activity-stream.discoverystream.region-weather-config to 
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.newtabpage.activity-stream.newtabWallpapers.enabled to false
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.newtabpage.activity-stream.newtabWallpapers.v2.enabled to false
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.newtabpage.activity-stream.showSponsoredTopSites to false
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.newtabpage.enabled to false
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.pagethumbnails.capturing_disabled to true
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.region.network.url to 
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.safebrowsing.blockedURIs.enabled to false
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.safebrowsing.downloads.enabled to false
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.safebrowsing.malware.enabled to false
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.safebrowsing.phishing.enabled to false
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.search.update to false
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.startup.couldRestoreSession.count to -1
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.tabs.remote.unloadDelayMs to 0
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.tabs.unloadOnLowMemory to false
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.tabs.warnOnClose to false
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.tabs.warnOnCloseOtherTabs to false
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.tabs.warnOnOpen to false
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.toolbars.bookmarks.visibility to never
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.topsites.contile.enabled to false
1732295534504	RemoteAgent	DEBUG	Setting recommended pref browser.usedOnWindows10.introURL to 
1732295534505	RemoteAgent	DEBUG	Setting recommended pref browser.urlbar.merino.endpointURL to 
1732295534505	RemoteAgent	DEBUG	Setting recommended pref browser.urlbar.suggest.searches to false
1732295534505	RemoteAgent	DEBUG	Setting recommended pref datareporting.policy.dataSubmissionPolicyAccepted to false
1732295534505	RemoteAgent	DEBUG	Setting recommended pref dom.disable_open_during_load to false
1732295534505	RemoteAgent	DEBUG	Setting recommended pref dom.file.createInChild to true
1732295534505	RemoteAgent	DEBUG	Setting recommended pref dom.input_events.security.minNumTicks to 0
1732295534505	RemoteAgent	DEBUG	Setting recommended pref dom.input_events.security.minTimeElapsedInMS to 0
1732295534505	RemoteAgent	DEBUG	Setting recommended pref dom.max_chrome_script_run_time to 0
1732295534505	RemoteAgent	DEBUG	Setting recommended pref dom.max_script_run_time to 0
1732295534505	RemoteAgent	DEBUG	Setting recommended pref dom.navigation.navigationRateLimit.count to 0
1732295534505	RemoteAgent	DEBUG	Setting recommended pref dom.push.connection.enabled to false
1732295534505	RemoteAgent	DEBUG	Setting recommended pref dom.screenorientation.allow-lock to true
1732295534505	RemoteAgent	DEBUG	Setting recommended pref dom.successive_dialog_time_limit to 0
1732295534505	RemoteAgent	DEBUG	Setting recommended pref extensions.getAddons.cache.enabled to false
1732295534505	RemoteAgent	DEBUG	Setting recommended pref extensions.getAddons.discovery.api_url to data:, 
1732295534505	RemoteAgent	DEBUG	Setting recommended pref extensions.blocklist.detailsURL to http://%(server)s/extensions-dummy/blocklistDetailsURL
1732295534505	RemoteAgent	DEBUG	Setting recommended pref extensions.blocklist.itemURL to http://%(server)s/extensions-dummy/blocklistItemURL
1732295534505	RemoteAgent	DEBUG	Setting recommended pref extensions.hotfix.url to http://%(server)s/extensions-dummy/hotfixURL
1732295534505	RemoteAgent	DEBUG	Setting recommended pref extensions.systemAddon.update.enabled to false
1732295534505	RemoteAgent	DEBUG	Setting recommended pref extensions.update.background.url to http://%(server)s/extensions-dummy/updateBackgroundURL
1732295534505	RemoteAgent	DEBUG	Setting recommended pref extensions.update.url to http://%(server)s/extensions-dummy/updateURL
1732295534505	RemoteAgent	DEBUG	Setting recommended pref extensions.getAddons.get.url to http://%(server)s/extensions-dummy/repositoryGetURL
1732295534505	RemoteAgent	DEBUG	Setting recommended pref extensions.getAddons.search.browseURL to http://%(server)s/extensions-dummy/repositoryBrowseURL
1732295534505	RemoteAgent	DEBUG	Setting recommended pref geo.provider.network.url to 
1732295534505	RemoteAgent	DEBUG	Setting recommended pref identity.fxaccounts.auth.uri to https://{server}/dummy/fxa
1732295534505	RemoteAgent	DEBUG	Setting recommended pref network.connectivity-service.enabled to false
1732295534505	RemoteAgent	DEBUG	Setting recommended pref network.http.phishy-userpass-length to 255
1732295534505	RemoteAgent	DEBUG	Setting recommended pref network.http.prompt-temp-redirect to false
1732295534505	RemoteAgent	DEBUG	Setting recommended pref privacy.trackingprotection.enabled to false
1732295534505	RemoteAgent	DEBUG	Setting recommended pref remote.prefs.recommended.applied to true
1732295534505	RemoteAgent	DEBUG	Setting recommended pref security.fileuri.strict_origin_policy to false
1732295534505	RemoteAgent	DEBUG	Setting recommended pref security.notification_enable_delay to 0
1732295534505	RemoteAgent	DEBUG	Setting recommended pref security.remote_settings.intermediates.enabled to false
1732295534505	RemoteAgent	DEBUG	Setting recommended pref signon.autofillForms to false
1732295534505	RemoteAgent	DEBUG	Setting recommended pref signon.rememberSignons to false
1732295534505	RemoteAgent	DEBUG	Setting recommended pref toolkit.telemetry.server to https://%(server)s/telemetry-dummy/
1732295534505	RemoteAgent	DEBUG	Setting recommended pref widget.windows.window_occlusion_tracking.enabled to false
1732295534505	RemoteAgent	DEBUG	WebDriver BiDi enabled
1732295534505	RemoteAgent	DEBUG	CDP enabled
1732295534505	Marionette	INFO	Marionette enabled
1732295534593	geckodriver::browser	TRACE	Failed to open /var/folders/nx/8zd7ck8914g_xc0hdgpycf8w0000gn/T/rust_mozprofileV8GAXg/MarionetteActivePort
1732295534593	geckodriver::marionette	TRACE	Retrying in 100ms
1732295534698	geckodriver::browser	TRACE	Failed to open /var/folders/nx/8zd7ck8914g_xc0hdgpycf8w0000gn/T/rust_mozprofileV8GAXg/MarionetteActivePort
1732295534698	geckodriver::marionette	TRACE	Retrying in 100ms
1732295534706	Marionette	TRACE	Received observer notification final-ui-startup
1732295534706	RemoteAgent	TRACE	Received observer notification final-ui-startup
console.error: "Warning: unrecognized command line flag" "-remote-allow-hosts"
1732295534764	Marionette	INFO	Listening on port 51088
1732295534765	Marionette	DEBUG	Marionette is listening
1732295534766	RemoteAgent	TRACE	Available local IP addresses: 127.0.0.1, [::1]
1732295534768	RemoteAgent	DEBUG	Setting recommended pref permissions.isolateBy.userContext to true
1732295534769	RemoteAgent	DEBUG	Setting recommended pref browser.contentblocking.features.standard to -tp,tpPrivate,cookieBehavior0,-cm,-fp
1732295534769	RemoteAgent	DEBUG	Setting recommended pref network.cookie.useServerTime to false
1732295534769	CDP	DEBUG	Waiting for initial application window
Read port: 51088
1732295534879	Marionette	DEBUG	Accepted connection 0 from 127.0.0.1:51089
1732295534884	geckodriver::marionette	DEBUG	Connection to Marionette established on 127.0.0.1:51088.
1732295534886	Marionette	DEBUG	0 -> [0,1,"WebDriver:NewSession",{"acceptInsecureCerts":true,"browserName":"firefox"}]
1732295534887	RemoteAgent	WARN	TLS certificate errors will be ignored for this session
1732295534887	Marionette	DEBUG	Waiting for initial application window
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
1732295535278	Marionette	TRACE	Received observer notification browser-idle-startup-tasks-finished
1732295535278	RemoteAgent	TRACE	Received observer notification browser-idle-startup-tasks-finished
1732295535281	RemoteAgent	TRACE	[9] ProgressListener Start: expectNavigation=false resolveWhenStarted=false unloadTimeout=5000 waitForExplicitStart=false
1732295535281	RemoteAgent	TRACE	[9] ProgressListener Setting unload timer (5000ms)
1732295535281	RemoteAgent	TRACE	[9] Wait for initial navigation: isInitial=false, isLoadingDocument=false
1732295535281	RemoteAgent	TRACE	[9] Document already finished loading: about:blank
1732295535281	RemoteAgent	TRACE	[9] ProgressListener Stop: has error=false url=about:blank
1732295535284	Marionette	DEBUG	0 <- [1,1,null,{"sessionId":"d49c8eb5-868c-4920-9d39-faea93964bd4","capabilities":{"acceptInsecureCerts":true,"browserName":"firefox","browserVersion":"132.0.2","platformName":"mac","unhandledPromptBehavior":"dismiss and notify","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0","moz:buildID":"20241110231641","moz:headless":true,"moz:platformVersion":"24.1.0","moz:processID":80721,"moz:profile":"/var/folders/nx/8zd7ck8914g_xc0hdgpycf8w0000gn/T/rust_mozprofileV8GAXg","moz:shutdownTimeout":60000,"pageLoadStrategy":"normal","timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"setWindowRect":true,"strictFileInteractability":false,"moz:accessibilityChecks":false,"moz:debuggerAddress":"127.0.0.1:9222","moz:webdriverClick":true,"moz:windowless":false,"proxy":{}}}]
1732295535286	webdriver::server	DEBUG	<- 200 OK {"value":{"sessionId":"d49c8eb5-868c-4920-9d39-faea93964bd4","capabilities":{"acceptInsecureCerts":true,"browserNam ... r":"dismiss and notify","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"}}}

STDERR

*** You are running in headless mode.
WebDriver BiDi listening on ws://127.0.0.1:9222
DevTools listening on ws://127.0.0.1:9222/devtools/browser/0db924a8-636a-4339-a8c5-bfcded3574bb
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.

@whimboo
Copy link
Collaborator

whimboo commented Nov 25, 2024

The trace log above doesn't contain any lines for commands as sent except for WebDriver:NewSession. Is there no further output after the line at 1732295535286? If not the lines Exiting due to channel error on STDERR could indicate some kind of crash of the parent process.

@ecbypi
Copy link
Author

ecbypi commented Nov 25, 2024

I mentioned that the command to create the authenticator doesn't produce any log output. I do get the 405 Method Not Allowed response code, so I imagine some code in the geckodriver instance is running.

I don't know what else I can provide other than the evidence I've provided so far to demonstrate it isn't working.

Here are the commands I ran:

curl -X POST -d @options.json -H 'Content-Type: application/json' 127.0.0.1:4444/session
{"value":{"sessionId":"1bf86513-30fb-420a-80a0-ae3a97032178" ...


curl -X POST -vvv -d @authenticator.json -H 'Content-Type: application/json' 127.0.0.1:4444/session/1bf86513-30fb-420a-80a0-ae3a97032178/webauthn/authenticator
* Uses proxy env variable no_proxy == '*'
*   Trying 127.0.0.1:4444...
* Connected to 127.0.0.1 (127.0.0.1) port 4444
> POST /session/06161a48-9ecd-4e18-986f-140d5af08610/webauthn/authenticator HTTP/1.1
> Host: 127.0.0.1:4444
> User-Agent: curl/8.6.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 132
>
< HTTP/1.1 405 Method Not Allowed
< content-type: text/plain; charset=utf-8
< content-length: 23
< date: Thu, 11 Jul 2024 19:53:12 GMT
<
* Connection #0 to host 127.0.0.1 left intact
HTTP method not allowed

@whimboo
Copy link
Collaborator

whimboo commented Nov 25, 2024

Thanks a lot. There is indeed something broken. I've filed https://bugzilla.mozilla.org/show_bug.cgi?id=1933195 to get this fixed. Lets re-open this issue.

@whimboo whimboo reopened this Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants