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

connection refused #67

Open
itnygr2 opened this issue Jul 22, 2021 · 1 comment
Open

connection refused #67

itnygr2 opened this issue Jul 22, 2021 · 1 comment

Comments

@itnygr2
Copy link

itnygr2 commented Jul 22, 2021

os: ubuntu 18.04
python: 3.7
i only tested firefox, i checked twice to make sure i followed every instruction but the following error appeared:

py 2048.py -b firefox
Traceback (most recent call last):
  File "2048.py", line 154, in <module>
    exit(main(sys.argv[1:]))
  File "2048.py", line 125, in main
    ctrl = FirefoxDebuggerControl(args.port)
  File "/home/m/projects/boardgames/2048/2048-ai/ffctrl.py", line 45, in __init__
    self.sock.connect(('localhost', port))
ConnectionRefusedError: [Errno 111] Connection refused
@nneonneo
Copy link
Owner

I have just tested with Firefox 90 on macOS, and it still works. (I just pushed 5b89217 to fix an unrelated issue with exception processing, but it would not have affected this issue).

The connection refused error suggests that Firefox remote debugging is not in fact enabled. Please double check that you have enabled all of the relevant about:config options, that you have quit Firefox, and that you have started it with the correct command-line parameter.

This screenshot shows my about:config with the correct configuration. Additionally, note that the browser address bar shows a "robot" that indicates that remote debugging has been enabled. If you do not see these options enabled in about:config, or if your browser does not show the robot, then you may not have set it up correctly.

Screen Shot 2021-07-22 at 5 02 57 PM

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