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

Wish it worked for me! #14

Open
chintito4ever opened this issue Oct 31, 2021 · 0 comments
Open

Wish it worked for me! #14

chintito4ever opened this issue Oct 31, 2021 · 0 comments

Comments

@chintito4ever
Copy link

Did everything I could but it failed to connect! Don't know why. Please help

Starting endless loop..
[1031/161932.898297:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
DevTools listening on ws://127.0.0.1:53279/devtools/browser/42dc9ca7-4750-4e21-9a3f-c52d8dd0bf91
[1031/161933.793949:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
DevTools listening on ws://127.0.0.1:41821/devtools/browser/a1df47f2-4f8f-41f9-b4f2-f8bcd08d0681
[1031/161938.460789:INFO:CONSOLE(12)] "ERR_DUP_SCRIPTS", source: https://www.glancecdn.net/cobrowse/CobrowseJS.ashx?group=19641&site=production (12)
[1031/161938.767834:INFO:CONSOLE(12)] "ERR_DUP_SCRIPTS", source: https://www.glancecdn.net/cobrowse/CobrowseJS.ashx?group=19641&site=production (12)
[1031/161939.409628:INFO:CONSOLE(3)] "Uncaught (in promise) Error: Loading chunk 12 failed.
(error: https://siteintercept.qualtrics.com/dxjsmodule/12.0dd1d9e7d155335870a6.chunk.js?Q_CLIENTVERSION=1.63.1&Q_CLIENTTYPE=web&Q_BRANDID=www.coned.com)", source: https://znetevwa2wlb6en9p-coned.siteintercept.qualtrics.com/WRSiteInterceptEngine/?Q_ZID=ZN_etEvWA2WLb6eN9P&Q_LOC=https%3A%2F%2Fwww.coned.com%2Fen%2Flogin&t=1635711579215 (3)
[1031/161939.458998:INFO:CONSOLE(3)] "Uncaught (in promise) Error: Loading chunk 12 failed.
(error: https://siteintercept.qualtrics.com/dxjsmodule/12.0dd1d9e7d155335870a6.chunk.js?Q_CLIENTVERSION=1.63.1&Q_CLIENTTYPE=web&Q_BRANDID=www.coned.com)", source: https://znetevwa2wlb6en9p-coned.siteintercept.qualtrics.com/WRSiteInterceptEngine/?Q_ZID=ZN_etEvWA2WLb6eN9P&Q_LOC=https%3A%2F%2Fwww.coned.com%2Fen%2Flogin&t=1635711579227 (3)
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/coned/meter.py", line 93, in last_read
await self.browse()
File "/usr/local/lib/python3.7/dist-packages/coned/meter.py", line 151, in browse
await page.click(".js-login-new-device-form .button")
File "/usr/local/lib/python3.7/dist-packages/pyppeteer/page.py", line 1546, in click
await frame.click(selector, options, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/pyppeteer/frame_manager.py", line 584, in click
await handle.click(options)
File "/usr/local/lib/python3.7/dist-packages/pyppeteer/element_handle.py", line 178, in click
obj = await self._clickablePoint()
File "/usr/local/lib/python3.7/dist-packages/pyppeteer/element_handle.py", line 112, in _clickablePoint
'Node is either not visible or not an HTMLElement')
pyppeteer.errors.ElementHandleError: Node is either not visible or not an HTMLElement
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "run.py", line 18, in
startTime, endTime, value, uom = asyncio.get_event_loop().run_until_complete(meter.last_read())
File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
return future.result()
File "/usr/local/lib/python3.7/dist-packages/coned/meter.py", line 114, in last_read
raise MeterError("Error requesting meter data")
coned.meter.MeterError: Error requesting meter data
Task exception was never retrieved
future: <Task finished coro=<Meter.browse() done, defined at /usr/local/lib/python3.7/dist-packages/coned/meter.py:116> exception=NetworkError('Protocol error Input.dispatchKeyEvent: Target closed.')>
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/coned/meter.py", line 149, in browse
await page.type("#form-login-mfa-code", mfa_code)
File "/usr/local/lib/python3.7/dist-packages/pyppeteer/page.py", line 1589, in type
return await frame.type(selector, text, options, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/pyppeteer/frame_manager.py", line 661, in type
await handle.type(text, options)
File "/usr/local/lib/python3.7/dist-packages/pyppeteer/element_handle.py", line 217, in type
await self._page.keyboard.type(text, options)
File "/usr/local/lib/python3.7/dist-packages/pyppeteer/input.py", line 211, in type
await self.press(char, {'delay': delay})
File "/usr/local/lib/python3.7/dist-packages/pyppeteer/input.py", line 241, in press
await self.down(key, options)
File "/usr/local/lib/python3.7/dist-packages/pyppeteer/input.py", line 100, in down
'isKeypad': description['location'] == 3,
pyppeteer.errors.NetworkError: Protocol error Input.dispatchKeyEvent: Target closed.
Future exception was never retrieved
future: <Future finished exception=NetworkError('Protocol error Target.sendMessageToTarget: Target closed.')>
pyppeteer.errors.NetworkError: Protocol error Target.sendMessageToTarget: Target closed.

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

1 participant