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

Timeout and 500 when attempting to create a session #1968

Closed
gmahomarf opened this issue Dec 6, 2021 · 1 comment
Closed

Timeout and 500 when attempting to create a session #1968

gmahomarf opened this issue Dec 6, 2021 · 1 comment

Comments

@gmahomarf
Copy link

System

  • Version: 0.30.0
  • Platform: macOS 11.6.1
  • Firefox: 94.0.2 (64-bit)
  • Selenium: Node.js selenium-webdriver 4.1.0
  • Node.js: v14.18.1

Testcase

$ ./geckodriver &

# Payload and headers extracted by debugging
$ curl -s localhost:4444/session \
  -H 'Content-type: application/json' \
  -d '{"desiredCapabilities":{"browserName":"firefox","moz:firefoxOptions":{"args":["-profile=/tmp/firefox"]}},"capabilities":{"alwaysMatch":{"browserName":"firefox","moz:firefoxOptions":{"args":["-profile=/tmp/firefox"]}}}}'

Stacktrace

cURL response

{"value":{"error":"timeout","message":"Connection refused (os error 61)","stacktrace":""}}

Trace-level log

See https://gist.github.com/gmahomarf/b29884d3fbb815f4486e6653d997c48c

Possible dupe of #1960? Unclear to me

@gmahomarf gmahomarf changed the title Timeout and 500 when attempting to establish a session Timeout and 500 when attempting to create a session Dec 6, 2021
@whimboo
Copy link
Collaborator

whimboo commented Dec 6, 2021

If you want to use a custom profile you will have to specify it via the profile capability of moz:firefoxOptions. Only that way geckodriver will take care of the appropriate Marionette port. In your case it just passes the profile path to Firefox.

If you want to keep using this technique you will have to tell geckodriver the port Marionette is listening on, which can be controlled via the Firefox preference marionette.port.

Otherwise check issue #1058 for more details.

@whimboo whimboo closed this as completed Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants