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

[Bug]: #30750

Closed
pik528 opened this issue May 11, 2024 · 2 comments
Closed

[Bug]: #30750

pik528 opened this issue May 11, 2024 · 2 comments

Comments

@pik528
Copy link

pik528 commented May 11, 2024

Version

1.43.0

Steps to reproduce

! [erro] (https://github.com/microsoft/playwright/assets/164969699/995338e7-02d0-4995-95f0-d066d10f5245)
I want to connect to a local browser, the given port is 9222 but access port 50215
! [Uploading erro.jpg…] ()
, check through cmd that the computer does not have this port open

Expected behavior

Correctly connect the specified port

Actual behavior

Traceback (most recent call last):
File "F:\test\playwrigh.py", line 61, in
get_cookies()
File "F:\test\playwrigh.py", line 17, in get_cookies
browser = p.chromium.connect_over_cdp("http://localhost:6666")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\pachong\Lib\site-packages\playwright\sync_api_generated.py", line 14275, in connect_over_cdp
self._sync(
File "E:\pachong\Lib\site-packages\playwright_impl_sync_base.py", line 115, in _sync
return task.result()
^^^^^^^^^^^^^
File "E:\pachong\Lib\site-packages\playwright_impl_browser_type.py", line 172, in connect_over_cdp
response = await self._channel.send_return_as_dict("connectOverCDP", params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\pachong\Lib\site-packages\playwright_impl_connection.py", line 64, in send_return_as_dict
return await self._connection.wrap_api_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\pachong\Lib\site-packages\playwright_impl_connection.py", line 513, in wrap_api_call
raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
playwright._impl._errors.Error: BrowserType.connect_over_cdp: connect ECONNREFUSED 127.0.0.1:50215
Call log:
retrieving websocket url from http://localhost:6666

Additional context

No response

Environment

Windows 10
pycharm2024.1
@pik528
Copy link
Author

pik528 commented May 11, 2024

Port 6666 and port 9299 are the same, the error is the same as 50215, the rest

@mxschmitt
Copy link
Member

This does not sound like an issue we can act on. The error suggests there is nothing running on the port.

Feel free to re-file with more details / steps for us to reproduce this issue. Thanks for your understanding.

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