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

Intermittent errors connecting to signaling server #31

Closed
ivelin opened this issue May 21, 2020 · 4 comments
Closed

Intermittent errors connecting to signaling server #31

ivelin opened this issue May 21, 2020 · 4 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed released

Comments

@ivelin
Copy link
Contributor

ivelin commented May 21, 2020

ambianic-edge    | 2020-05-21 23:30:06 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.make_discoverable(274): Peer destroyed. Will create a new peer.
ambianic-edge    | 2020-05-21 23:30:06 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(239): creating peer
ambianic-edge    | 2020-05-21 23:30:06 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(244): last saved savedPeerId c559151b-eb8d-468a-91b0-7db3baf25dd2
ambianic-edge    | 2020-05-21 23:30:06 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(246): Peer session token 9a515af4-8c7d-4a09-80af-b188e8770407
ambianic-edge    | 2020-05-21 23:30:06 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(256): pnpService: peer created with id c559151b-eb8d-468a-91b0-7db3baf25dd2 , options: PeerOptions(host='ambianic-pnp.herokuapp.com', port=443, path='/', key='peerjs', token='9a515af4-8c7d-4a09-80af-b188e8770407', config=RTCConfiguration(iceServers=[RTCIceServer(urls=['stun:stun1.l.google.com:19302', 'stun:stun2.l.google.com:19302', 'stun:stun3.l.google.com:19302', 'stun:stun4.l.google.com:19302', 'stun:stun.l.google.com:19302', 'stun:stun.services.mozilla.com:3478', 'stun:stunserver.org:3478'], username=None, credential=None, credentialType='password'), RTCIceServer(urls=['turn:numb.viagenie.ca'], username='webrtc@live.com', credential='muazkh', credentialType='password'), RTCIceServer(urls=['turn:192.158.29.39:3478?transport=udp'], username='28224511:1379330808', credential='JZEOEt2V3Qb0y27GRntt2u2PAYA=', credentialType='password'), RTCIceServer(urls=['turn:192.158.29.39:3478?transport=tcp'], username='28224511:1379330808', credential='JZEOEt2V3Qb0y27GRntt2u2PAYA=', credentialType='password'), RTCIceServer(urls=['turn:turn.bistri.com:80'], username='homeo', credential='homeo', credentialType='password'), RTCIceServer(urls=['turn:turn.anyfirewall.com:443?transport=tcp'], username='webrtc', credential='webrtc', credentialType='password'), RTCIceServer(urls=['turn:0.peerjs.com:3478'], username='peerjs', credential='peerjsp', credentialType='password')]), secure=True, pingInterval=5)
ambianic-edge    | 2020-05-21 23:30:06 INFO /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.start(118): Peer started with UUID: c559151b-eb8d-468a-91b0-7db3baf25dd2
ambianic-edge    | 2020-05-21 23:30:06 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(258): peer activated
ambianic-edge    | 2020-05-21 23:30:06 ERROR /usr/local/lib/python3.7/dist-packages/peerjs/peer.py._abort(454): Aborting! 
ambianic-edge    | PeerErrorType: PeerErrorType.UnavailableID 
ambianic-edge    | Error message: ID "$c559151b-eb8d-468a-91b0-7db3baf25dd2" is taken
ambianic-edge    |   File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
ambianic-edge    |     "__main__", mod_spec)
ambianic-edge    |   File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
ambianic-edge    |     exec(code, run_globals)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py", line 362, in <module>
ambianic-edge    |     loop.run_until_complete(_start())
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 571, in run_until_complete
ambianic-edge    |     self.run_forever()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
ambianic-edge    |     self._run_once()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 1775, in _run_once
ambianic-edge    |     handle._run()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
ambianic-edge    |     self._context.run(self._callback, *self._args)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peer.py", line 231, in _on_server_idtaken
ambianic-edge    |     f'ID "${self.id}" is taken')
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peer.py", line 455, in _abort
ambianic-edge    |     traceback.print_stack()
ambianic-edge    | 2020-05-21 23:30:06 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.emitError(464): Connection error: ID "$c559151b-eb8d-468a-91b0-7db3baf25dd2" is taken
ambianic-edge    | 2020-05-21 23:30:06 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.emitError(469): Connection error: 
ambianic-edge    | ID "$c559151b-eb8d-468a-91b0-7db3baf25dd2" is taken
ambianic-edge    | 2020-05-21 23:30:06 ERROR /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_error(128): Peer error ID "$c559151b-eb8d-468a-91b0-7db3baf25dd2" is taken
ambianic-edge    | NoneType: None
ambianic-edge    | 2020-05-21 23:30:06 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_error(129): peerConnectionStatus None
ambianic-edge    | 2020-05-21 23:30:06 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_close(124): Peer connection closed
ambianic-edge    | 2020-05-21 23:30:06 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_disconnected(110): Peer c559151b-eb8d-468a-91b0-7db3baf25dd2 disconnected from server.
ambianic-edge    | 2020-05-21 23:30:06 ERROR /usr/lib/python3.7/asyncio/base_events.py.default_exception_handler(1608): Exception in callback AsyncIOEventEmitter._emit_run.<locals>._callback(<Task finishe... destroyed.')>) at /usr/local/lib/python3.7/dist-packages/pyee/_asyncio.py:55
ambianic-edge    | handle: <Handle AsyncIOEventEmitter._emit_run.<locals>._callback(<Task finishe... destroyed.')>) at /usr/local/lib/python3.7/dist-packages/pyee/_asyncio.py:55>
ambianic-edge    | Traceback (most recent call last):
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
ambianic-edge    |     self._context.run(self._callback, *self._args)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/pyee/_asyncio.py", line 62, in _callback
ambianic-edge    |     self.emit('error', exc)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/pyee/_base.py", line 111, in emit
ambianic-edge    |     self._emit_handle_potential_error(event, args[0] if args else None)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/pyee/_base.py", line 83, in _emit_handle_potential_error
ambianic-edge    |     raise error
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py", line 119, in peer_disconnected
ambianic-edge    |     await peer.reconnect()
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peer.py", line 537, in reconnect
ambianic-edge    |     raise RuntimeError("This peer cannot reconnect to the server. "
ambianic-edge    | RuntimeError: This peer cannot reconnect to the server. It has already been destroyed.
^CERROR: Aborting.
@ivelin ivelin added this to To do in Ambianic Weekly Sprints via automation May 21, 2020
@ivelin ivelin added bug Something isn't working help wanted Extra attention is needed labels May 21, 2020
@ivelin ivelin self-assigned this May 21, 2020
@ivelin ivelin moved this from To do to In progress in Ambianic Weekly Sprints May 21, 2020
@ivelin
Copy link
Contributor Author

ivelin commented May 22, 2020

clientsIds': ['c559151b-eb8d-468a-91b0-7db3baf25dd2', '7ab48f24-668a-4a21-aec8-beeab802dbad']}
ambianic-edge    | 2020-05-20 20:25:40 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.join_peer_room(64): myRoom members {'
clientsIds': ['c559151b-eb8d-468a-91b0-7db3baf25dd2', '7ab48f24-668a-4a21-aec8-beeab802dbad']}
ambianic-edge    | 2020-05-20 20:25:50 ERROR /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.make_discoverable(286): Error while 
trying to join local peer room. Will retry in a few moments. Error: 
ambianic-edge    | ConnectionError('Unexpected status code 401 for https://ambianic-pnp.herokuapp.com:443/peerjs/c559151b-eb8d-468a-91b0-7db3baf2
5dd2/dc3ebbab-2ccd-4f0d-94bc-5b9b8cac5943/room/id?ts=2148735.2558159370.10154805004736134')
ambianic-edge    | Traceback (most recent call last):
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py", line 277, in make_discoverable
ambianic-edge    |     await join_peer_room(peer=peer)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py", line 63, in join_peer_room
ambianic-edge    |     peerIds = await myRoom.getRoomMembers()
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peerroom.py", line 74, in getRoomMembers
ambianic-edge    |     members = await self.join()
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peerroom.py", line 84, in join
ambianic-edge    |     self._roomId = await self._getRoomId()
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peerroom.py", line 48, in _getRoomId
ambianic-edge    |     result = await self._restCall(rest_method=rest_method)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peerroom.py", line 29, in _restCall
ambianic-edge    |     raise ConnectionError(f'Unexpected status code {status} '
ambianic-edge    | ConnectionError: Unexpected status code 401 for https://ambianic-pnp.herokuapp.com:443/peerjs/c559151b-eb8d-468a-91b0-7db3baf2
5dd2/dc3ebbab-2ccd-4f0d-94bc-5b9b8cac5943/room/id?ts=2148735.2558159370.10154805004736134
ambianic-edge    | 2020-05-20 20:25:50 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.make_discoverable(290): Peer connecti
on was corrupted. Detroying peer.
ambianic-edge    | 2020-05-20 20:25:50 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_disconnected(110): Peer c559151b
-eb8d-468a-91b0-7db3baf25dd2 disconnected from server.
ambianic-edge    | 2020-05-20 20:25:50 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pc_close(233): Connection to remote p
eer closed
ambianic-edge    | 2020-05-20 20:25:50 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pc_close(233): Connection to remote p
eer closed
ambianic-edge    | 2020-05-20 20:25:50 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pc_close(233): Connection to remote p
eer closed
ambianic-edge    | 2020-05-20 20:25:50 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pc_close(233): Connection to remote p
eer closed
ambianic-edge    | 2020-05-20 20:25:50 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pc_close(233): Connection to remote p
eer closed
ambianic-edge    | 2020-05-20 20:25:50 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pc_close(233): Connection to remote p
eer closed
ambianic-edge    | 2020-05-20 20:25:50 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pc_close(233): Connection to remote p
eer closed
ambianic-edge    | 2020-05-20 20:25:50 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pc_close(233): Connection to remote p
eer closed
ambianic-edge    | 2020-05-20 20:25:50 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pc_close(233): Connection to remote p
eer closed
ambianic-edge    | 2020-05-20 20:25:50 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pc_close(233): Connection to remote peer closed
ambianic-edge    | 2020-05-20 20:25:50 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pc_close(233): Connection to remote p
eer closed
ambianic-edge    | 2020-05-20 20:25:50 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pc_close(233): Connection to remote p
eer closed
ambianic-edge    | 2020-05-20 20:25:50 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pc_close(233): Connection to remote p
eer closed
ambianic-edge    | 2020-05-20 20:25:50 INFO /usr/local/lib/python3.7/dist-packages/aioice/turn.py.delete(153): TURN allocation deleted ('158.69.2
21.198', 52157)
ambianic-edge    | 2020-05-20 20:25:50 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_close(124): Peer connection clos
ed
ambianic-edge    | 2020-05-20 20:25:50 INFO /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.start(118): Peer started with UUID: c559151b-eb
8d-468a-91b0-7db3baf25dd2
ambianic-edge    | 2020-05-20 20:25:53 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.make_discoverable(274): Peer destroye
d. Will create a new peer.
ambianic-edge    | 2020-05-20 20:25:53 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(239): creating pe
er
ambianic-edge    | 2020-05-20 20:25:53 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(244): last saved 
savedPeerId c559151b-eb8d-468a-91b0-7db3baf25dd2
ambianic-edge    | 2020-05-20 20:25:53 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(246): Peer sessio
n token c39311f9-dcb6-42ba-81ef-001dcadcce97
ambianic-edge    | 2020-05-20 20:25:53 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(256): pnpService:
 peer created with id c559151b-eb8d-468a-91b0-7db3baf25dd2 , options: PeerOptions(host='ambianic-pnp.herokuapp.com', port=443, path='/', key='peerjs', t
oken='c39311f9-dcb6-42ba-81ef-001dcadcce97', config=RTCConfiguration(iceServers=[RTCIceServer(urls=['stun:stun1.l.google.com:19302', 'stun:stun2.l.googl
e.com:19302', 'stun:stun3.l.google.com:19302', 'stun:stun4.l.google.com:19302', 'stun:stun.l.google.com:19302', 'stun:stun.services.mozilla.com:3478', '
stun:stunserver.org:3478'], username=None, credential=None, credentialType='password'), RTCIceServer(urls=['turn:numb.viagenie.ca'], username='webrtc@li
ve.com', credential='muazkh', credentialType='password'), RTCIceServer(urls=['turn:192.158.29.39:3478?transport=udp'], username='28224511:1379330808', c
redential='JZEOEt2V3Qb0y27GRntt2u2PAYA=', credentialType='password'), RTCIceServer(urls=['turn:192.158.29.39:3478?transport=tcp'], username='28224511:13
79330808', credential='JZEOEt2V3Qb0y27GRntt2u2PAYA=', credentialType='password'), RTCIceServer(urls=['turn:turn.bistri.com:80'], username='homeo', crede
ntial='homeo', credentialType='password'), RTCIceServer(urls=['turn:turn.anyfirewall.com:443?transport=tcp'], username='webrtc', credential='webrtc', cr
edentialType='password'), RTCIceServer(urls=['turn:0.peerjs.com:3478'], username='peerjs', credential='peerjsp', credentialType='password')]), secure=Tr
ue, pingInterval=5)
ambianic-edge    | 2020-05-20 20:25:53 INFO /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.start(118): Peer started with UUID: c559151b-eb
8d-468a-91b0-7db3baf25dd2
ambianic-edge    | 2020-05-20 20:25:53 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(258): peer activa
ted
ambianic-edge    | 2020-05-20 20:25:53 ERROR /usr/local/lib/python3.7/dist-packages/peerjs/peer.py._abort(454): Aborting! 
ambianic-edge    | PeerErrorType: PeerErrorType.UnavailableID 
ambianic-edge    | Error message: ID "$c559151b-eb8d-468a-91b0-7db3baf25dd2" is taken
ambianic-edge    |   File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
ambianic-edge    |     "__main__", mod_spec)
ambianic-edge    |   File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
ambianic-edge    |     exec(code, run_globals)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py", line 362, in <module>
ambianic-edge    |     loop.run_until_complete(_start())
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 571, in run_until_complete
ambianic-edge    |     self.run_forever()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
ambianic-edge    |     self._run_once()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 1775, in _run_once
ambianic-edge    |     handle._run()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
ambianic-edge    |     self._context.run(self._callback, *self._args)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peer.py", line 231, in _on_server_idtaken
ambianic-edge    |     f'ID "${self.id}" is taken')
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peer.py", line 455, in _abort
ambianic-edge    |     traceback.print_stack()
ambianic-edge    | 2020-05-20 20:25:53 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.emitError(464): Connection error: ID "$c5591
51b-eb8d-468a-91b0-7db3baf25dd2" is taken
ambianic-edge    | 2020-05-20 20:25:53 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.emitError(469): Connection error: 
ambianic-edge    | ID "$c559151b-eb8d-468a-91b0-7db3baf25dd2" is taken
ambianic-edge    | 2020-05-20 20:25:53 ERROR /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_error(128): Peer error ID "$c55
9151b-eb8d-468a-91b0-7db3baf25dd2" is taken
ambianic-edge    | NoneType: None
ambianic-edge    | 2020-05-20 20:25:53 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_error(129): peerConnectionSta
tus None
ambianic-edge    | 2020-05-20 20:25:53 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_close(124): Peer connection clos
ed
ambianic-edge    | 2020-05-20 20:25:53 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_disconnected(110): Peer c559151b
-eb8d-468a-91b0-7db3baf25dd2 disconnected from server.
ambianic-edge    | 2020-05-20 20:25:53 ERROR /usr/lib/python3.7/asyncio/base_events.py.default_exception_handler(1608): Exception in callback Asy
ncIOEventEmitter._emit_run.<locals>._callback(<Task finishe... destroyed.')>) at /usr/local/lib/python3.7/dist-packages/pyee/_asyncio.py:55


@ivelin
Copy link
Contributor Author

ivelin commented May 22, 2020

Looks like at some point the websockets connection to heroku gets corrupted. When PeerJS tries to recover and connect with its known peerid, the signaling server thinks that it is a conflicting registration from a different peer instead of reconnection attempt from the same peer.

One possible solution is to pause a bit longer to give the signaling server a chance to clean up the peer id from its realm due to inactivity. Then try to reconnect.

Another option is to make the signaling server smarter and make it check the source of the reconnection request against the original source. If they are the same, allow the reconnect with same Peer ID.

@ivelin ivelin assigned muka and unassigned ivelin Jun 3, 2020
@ivelin
Copy link
Contributor Author

ivelin commented Nov 26, 2020

The issue is still present. After a few hours of normal operation, the python peer eventually goes into this endless loop unable to regain connection to the signaling server due to its peer ID already being reserved.

ambianic-edge    | 2020-11-26 03:39:54 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_disconnected(158): Peer 7248f792-abec-4f72-a581-8dacd0308b72 disconnected from server.
ambianic-edge    | 2020-11-26 03:39:54 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_close(172): Peer connection closed
ambianic-edge    | 2020-11-26 03:39:55 INFO /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.start(118): Peer started with UUID: 7248f792-abec-4f72-a581-8dacd0308b72
ambianic-edge    | 2020-11-26 03:39:55 ERROR /usr/local/lib/python3.7/dist-packages/peerjs/peer.py._abort(454): Aborting! 
ambianic-edge    | PeerErrorType: PeerErrorType.UnavailableID 
ambianic-edge    | Error message: ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    |   File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
ambianic-edge    |     "__main__", mod_spec)
ambianic-edge    |   File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
ambianic-edge    |     exec(code, run_globals)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py", line 423, in <module>
ambianic-edge    |     loop.run_until_complete(_start())
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 571, in run_until_complete
ambianic-edge    |     self.run_forever()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
ambianic-edge    |     self._run_once()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 1775, in _run_once
ambianic-edge    |     handle._run()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
ambianic-edge    |     self._context.run(self._callback, *self._args)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peer.py", line 231, in _on_server_idtaken
ambianic-edge    |     f'ID "${self.id}" is taken')
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peer.py", line 455, in _abort
ambianic-edge    |     traceback.print_stack()
ambianic-edge    | 2020-11-26 03:39:55 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.emitError(464): Connection error: ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    | 2020-11-26 03:39:55 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.emitError(469): Connection error: 
ambianic-edge    | ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    | 2020-11-26 03:39:55 ERROR /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_error(176): Peer error ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    | NoneType: None
ambianic-edge    | 2020-11-26 03:39:55 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_error(177): peerConnectionStatus None
ambianic-edge    | 2020-11-26 03:39:55 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_disconnected(158): Peer 7248f792-abec-4f72-a581-8dacd0308b72 disconnected from server.
ambianic-edge    | 2020-11-26 03:39:55 ERROR /usr/lib/python3.7/asyncio/base_events.py.default_exception_handler(1608): Exception in callback AsyncIOEventEmitter._emit_run.<locals>._callback(<Task finishe... destroyed.')>) at /usr/local/lib/python3.7/dist-packages/pyee/_asyncio.py:55
ambianic-edge    | handle: <Handle AsyncIOEventEmitter._emit_run.<locals>._callback(<Task finishe... destroyed.')>) at /usr/local/lib/python3.7/dist-packages/pyee/_asyncio.py:55>
ambianic-edge    | Traceback (most recent call last):
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
ambianic-edge    |     self._context.run(self._callback, *self._args)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/pyee/_asyncio.py", line 62, in _callback
ambianic-edge    |     self.emit('error', exc)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/pyee/_base.py", line 116, in emit
ambianic-edge    |     self._emit_handle_potential_error(event, args[0] if args else None)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/pyee/_base.py", line 86, in _emit_handle_potential_error
ambianic-edge    |     raise error
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py", line 167, in peer_disconnected
ambianic-edge    |     await peer.reconnect()
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peer.py", line 537, in reconnect
ambianic-edge    |     raise RuntimeError("This peer cannot reconnect to the server. "
ambianic-edge    | RuntimeError: This peer cannot reconnect to the server. It has already been destroyed.
ambianic-edge    | 2020-11-26 03:39:55 INFO /opt/ambianic-edge/src/ambianic/pipeline/ai/image_detection.py._log_stats(160): Inference time 335.64 ms, 2.15 fps in pipeline area_watch
ambianic-edge    | 2020-11-26 03:39:55 INFO /opt/ambianic-edge/src/ambianic/pipeline/ai/image_detection.py._log_stats(160): Inference time 328.18 ms, 2.06 fps in pipeline area_watch
ambianic-edge    | 2020-11-26 03:39:56 INFO /opt/ambianic-edge/src/ambianic/pipeline/ai/image_detection.py._log_stats(160): Inference time 328.65 ms, 2.12 fps in pipeline area_watch
ambianic-edge    | 2020-11-26 03:39:56 INFO /opt/ambianic-edge/src/ambianic/pipeline/ai/image_detection.py._log_stats(160): Inference time 328.86 ms, 2.09 fps in pipeline area_watch
ambianic-edge    | 2020-11-26 03:39:57 INFO /opt/ambianic-edge/src/ambianic/pipeline/ai/image_detection.py._log_stats(160): Inference time 328.79 ms, 2.07 fps in pipeline area_watch
ambianic-edge    | 2020-11-26 03:39:57 INFO /opt/ambianic-edge/src/ambianic/pipeline/ai/image_detection.py._log_stats(160): Inference time 328.10 ms, 2.16 fps in pipeline area_watch
ambianic-edge    | 2020-11-26 03:39:57 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.make_discoverable(328): Peer destroyed. Will create a new peer.
ambianic-edge    | 2020-11-26 03:39:57 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(287): creating peer
ambianic-edge    | 2020-11-26 03:39:57 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(293): last saved savedPeerId 7248f792-abec-4f72-a581-8dacd0308b72
ambianic-edge    | 2020-11-26 03:39:57 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(295): Peer session token 46013141-92be-4f4a-a304-16294071bab9
ambianic-edge    | 2020-11-26 03:39:57 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(310): pnpService: peer created with id 7248f792-abec-4f72-a581-8dacd0308b72 , options: PeerOptions(host='ambianic-pnp.herokuapp.com', port=443, path='/', key='peerjs', token='46013141-92be-4f4a-a304-16294071bab9', config=RTCConfiguration(iceServers=[RTCIceServer(urls=['stun:stun.l.google.com:19302'], username=None, credential=None, credentialType='password')]), secure=True, pingInterval=5)
ambianic-edge    | 2020-11-26 03:39:58 INFO /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.start(118): Peer started with UUID: 7248f792-abec-4f72-a581-8dacd0308b72
ambianic-edge    | 2020-11-26 03:39:58 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(312): peer activated
ambianic-edge    | 2020-11-26 03:39:58 ERROR /usr/local/lib/python3.7/dist-packages/peerjs/peer.py._abort(454): Aborting! 
ambianic-edge    | PeerErrorType: PeerErrorType.UnavailableID 
ambianic-edge    | Error message: ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    |   File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
ambianic-edge    |     "__main__", mod_spec)
ambianic-edge    |   File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
ambianic-edge    |     exec(code, run_globals)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py", line 423, in <module>
ambianic-edge    |     loop.run_until_complete(_start())
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 571, in run_until_complete
ambianic-edge    |     self.run_forever()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
ambianic-edge    |     self._run_once()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 1775, in _run_once
ambianic-edge    |     handle._run()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
ambianic-edge    |     self._context.run(self._callback, *self._args)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peer.py", line 231, in _on_server_idtaken
ambianic-edge    |     f'ID "${self.id}" is taken')
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peer.py", line 455, in _abort
ambianic-edge    |     traceback.print_stack()
ambianic-edge    | 2020-11-26 03:39:58 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.emitError(464): Connection error: ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    | 2020-11-26 03:39:58 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.emitError(469): Connection error: 
ambianic-edge    | ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    | 2020-11-26 03:39:58 ERROR /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_error(176): Peer error ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    | NoneType: None
ambianic-edge    | 2020-11-26 03:39:58 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_error(177): peerConnectionStatus None
ambianic-edge    | 2020-11-26 03:39:58 INFO /opt/ambianic-edge/src/ambianic/pipeline/ai/image_detection.py._log_stats(160): Inference time 331.92 ms, 2.04 fps in pipeline area_watch
ambianic-edge    | 2020-11-26 03:39:58 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_disconnected(158): Peer 7248f792-abec-4f72-a581-8dacd0308b72 disconnected from server.
ambianic-edge    | 2020-11-26 03:39:58 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_close(172): Peer connection closed
ambianic-edge    | 2020-11-26 03:39:58 INFO /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.start(118): Peer started with UUID: 7248f792-abec-4f72-a581-8dacd0308b72
ambianic-edge    | 2020-11-26 03:39:58 ERROR /usr/local/lib/python3.7/dist-packages/peerjs/peer.py._abort(454): Aborting! 
ambianic-edge    | PeerErrorType: PeerErrorType.UnavailableID 
ambianic-edge    | Error message: ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    |   File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
ambianic-edge    |     "__main__", mod_spec)
ambianic-edge    |   File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
ambianic-edge    |     exec(code, run_globals)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py", line 423, in <module>
ambianic-edge    |     loop.run_until_complete(_start())
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 571, in run_until_complete
ambianic-edge    |     self.run_forever()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
ambianic-edge    |     self._run_once()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 1775, in _run_once
ambianic-edge    |     handle._run()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
ambianic-edge    |     self._context.run(self._callback, *self._args)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peer.py", line 231, in _on_server_idtaken
ambianic-edge    |     f'ID "${self.id}" is taken')
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peer.py", line 455, in _abort
ambianic-edge    |     traceback.print_stack()
ambianic-edge    | 2020-11-26 03:39:58 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.emitError(464): Connection error: ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    | 2020-11-26 03:39:58 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.emitError(469): Connection error: 
ambianic-edge    | ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    | 2020-11-26 03:39:58 ERROR /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_error(176): Peer error ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    | NoneType: None
ambianic-edge    | 2020-11-26 03:39:58 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_error(177): peerConnectionStatus None
ambianic-edge    | 2020-11-26 03:39:58 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_disconnected(158): Peer 7248f792-abec-4f72-a581-8dacd0308b72 disconnected from server.
ambianic-edge    | 2020-11-26 03:39:58 ERROR /usr/lib/python3.7/asyncio/base_events.py.default_exception_handler(1608): Exception in callback AsyncIOEventEmitter._emit_run.<locals>._callback(<Task finishe... destroyed.')>) at /usr/local/lib/python3.7/dist-packages/pyee/_asyncio.py:55
ambianic-edge    | handle: <Handle AsyncIOEventEmitter._emit_run.<locals>._callback(<Task finishe... destroyed.')>) at /usr/local/lib/python3.7/dist-packages/pyee/_asyncio.py:55>
ambianic-edge    | Traceback (most recent call last):
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
ambianic-edge    |     self._context.run(self._callback, *self._args)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/pyee/_asyncio.py", line 62, in _callback
ambianic-edge    |     self.emit('error', exc)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/pyee/_base.py", line 116, in emit
ambianic-edge    |     self._emit_handle_potential_error(event, args[0] if args else None)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/pyee/_base.py", line 86, in _emit_handle_potential_error
ambianic-edge    |     raise error
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py", line 167, in peer_disconnected
ambianic-edge    |     await peer.reconnect()
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peer.py", line 537, in reconnect
ambianic-edge    |     raise RuntimeError("This peer cannot reconnect to the server. "
ambianic-edge    | RuntimeError: This peer cannot reconnect to the server. It has already been destroyed.
ambianic-edge    | 2020-11-26 03:39:58 INFO /opt/ambianic-edge/src/ambianic/pipeline/ai/image_detection.py._log_stats(160): Inference time 329.37 ms, 2.09 fps in pipeline area_watch
ambianic-edge    | 2020-11-26 03:39:59 INFO /opt/ambianic-edge/src/ambianic/pipeline/ai/image_detection.py._log_stats(160): Inference time 328.46 ms, 2.10 fps in pipeline area_watch
ambianic-edge    | 2020-11-26 03:39:59 INFO /opt/ambianic-edge/src/ambianic/pipeline/ai/image_detection.py._log_stats(160): Inference time 328.69 ms, 2.09 fps in pipeline area_watch
ambianic-edge    | 2020-11-26 03:40:00 INFO /opt/ambianic-edge/src/ambianic/pipeline/ai/image_detection.py._log_stats(160): Inference time 328.25 ms, 2.14 fps in pipeline area_watch
ambianic-edge    | 2020-11-26 03:40:00 INFO /opt/ambianic-edge/src/ambianic/pipeline/ai/image_detection.py._log_stats(160): Inference time 328.72 ms, 2.07 fps in pipeline area_watch
ambianic-edge    | 2020-11-26 03:40:00 INFO /opt/ambianic-edge/src/ambianic/pipeline/ai/image_detection.py._log_stats(160): Inference time 328.87 ms, 2.12 fps in pipeline area_watch
ambianic-edge    | 2020-11-26 03:40:01 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.make_discoverable(328): Peer destroyed. Will create a new peer.
ambianic-edge    | 2020-11-26 03:40:01 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(287): creating peer
ambianic-edge    | 2020-11-26 03:40:01 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(293): last saved savedPeerId 7248f792-abec-4f72-a581-8dacd0308b72
ambianic-edge    | 2020-11-26 03:40:01 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(295): Peer session token 9e6a734a-9bdd-495d-b920-1647f034773c
ambianic-edge    | 2020-11-26 03:40:01 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(310): pnpService: peer created with id 7248f792-abec-4f72-a581-8dacd0308b72 , options: PeerOptions(host='ambianic-pnp.herokuapp.com', port=443, path='/', key='peerjs', token='9e6a734a-9bdd-495d-b920-1647f034773c', config=RTCConfiguration(iceServers=[RTCIceServer(urls=['stun:stun.l.google.com:19302'], username=None, credential=None, credentialType='password')]), secure=True, pingInterval=5)
ambianic-edge    | 2020-11-26 03:40:01 INFO /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.start(118): Peer started with UUID: 7248f792-abec-4f72-a581-8dacd0308b72
ambianic-edge    | 2020-11-26 03:40:01 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.pnp_service_connect(312): peer activated
ambianic-edge    | 2020-11-26 03:40:01 ERROR /usr/local/lib/python3.7/dist-packages/peerjs/peer.py._abort(454): Aborting! 
ambianic-edge    | PeerErrorType: PeerErrorType.UnavailableID 
ambianic-edge    | Error message: ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    |   File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
ambianic-edge    |     "__main__", mod_spec)
ambianic-edge    |   File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
ambianic-edge    |     exec(code, run_globals)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py", line 423, in <module>
ambianic-edge    |     loop.run_until_complete(_start())
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 571, in run_until_complete
ambianic-edge    |     self.run_forever()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
ambianic-edge    |     self._run_once()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 1775, in _run_once
ambianic-edge    |     handle._run()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
ambianic-edge    |     self._context.run(self._callback, *self._args)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peer.py", line 231, in _on_server_idtaken
ambianic-edge    |     f'ID "${self.id}" is taken')
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peer.py", line 455, in _abort
ambianic-edge    |     traceback.print_stack()
ambianic-edge    | 2020-11-26 03:40:01 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.emitError(464): Connection error: ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    | 2020-11-26 03:40:01 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.emitError(469): Connection error: 
ambianic-edge    | ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    | 2020-11-26 03:40:01 ERROR /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_error(176): Peer error ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    | NoneType: None
ambianic-edge    | 2020-11-26 03:40:01 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_error(177): peerConnectionStatus None
ambianic-edge    | 2020-11-26 03:40:01 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_disconnected(158): Peer 7248f792-abec-4f72-a581-8dacd0308b72 disconnected from server.
ambianic-edge    | 2020-11-26 03:40:01 INFO /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_close(172): Peer connection closed
ambianic-edge    | 2020-11-26 03:40:01 INFO /opt/ambianic-edge/src/ambianic/pipeline/ai/image_detection.py._log_stats(160): Inference time 330.29 ms, 2.05 fps in pipeline area_watch
ambianic-edge    | 2020-11-26 03:40:01 INFO /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.start(118): Peer started with UUID: 7248f792-abec-4f72-a581-8dacd0308b72
ambianic-edge    | 2020-11-26 03:40:01 ERROR /usr/local/lib/python3.7/dist-packages/peerjs/peer.py._abort(454): Aborting! 
ambianic-edge    | PeerErrorType: PeerErrorType.UnavailableID 
ambianic-edge    | Error message: ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    |   File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
ambianic-edge    |     "__main__", mod_spec)
ambianic-edge    |   File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
ambianic-edge    |     exec(code, run_globals)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py", line 423, in <module>
ambianic-edge    |     loop.run_until_complete(_start())
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 571, in run_until_complete
ambianic-edge    |     self.run_forever()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 539, in run_forever
ambianic-edge    |     self._run_once()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/base_events.py", line 1775, in _run_once
ambianic-edge    |     handle._run()
ambianic-edge    |   File "/usr/lib/python3.7/asyncio/events.py", line 88, in _run
ambianic-edge    |     self._context.run(self._callback, *self._args)
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peer.py", line 231, in _on_server_idtaken
ambianic-edge    |     f'ID "${self.id}" is taken')
ambianic-edge    |   File "/usr/local/lib/python3.7/dist-packages/peerjs/peer.py", line 455, in _abort
ambianic-edge    |     traceback.print_stack()
ambianic-edge    | 2020-11-26 03:40:01 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.emitError(464): Connection error: ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    | 2020-11-26 03:40:01 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/peer.py.emitError(469): Connection error: 
ambianic-edge    | ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    | 2020-11-26 03:40:01 ERROR /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_error(176): Peer error ID "$7248f792-abec-4f72-a581-8dacd0308b72" is taken
ambianic-edge    | NoneType: None
ambianic-edge    | 2020-11-26 03:40:01 WARNING /usr/local/lib/python3.7/dist-packages/peerjs/ext/http-proxy.py.peer_error(177): peerConnectionStatus None

@ivelin ivelin self-assigned this Nov 26, 2020
@ivelin ivelin closed this as completed in 6b68cfa Nov 28, 2020
ivelin pushed a commit that referenced this issue Nov 28, 2020
## [1.4.1](v1.4.0...v1.4.1) (2020-11-28)

### Bug Fixes

* merge pull request [#38](#38) from ivelin/master ([12a4365](12a4365))
* peer reconnect error; closes [#31](#31) ([6b68cfa](6b68cfa))
@ivelin
Copy link
Contributor Author

ivelin commented Nov 28, 2020

🎉 This issue has been resolved in version 1.4.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

ivelin pushed a commit to ambianic/ambianic-edge that referenced this issue Nov 28, 2020
github-actions bot pushed a commit to ivelin/peerjs-python that referenced this issue Sep 21, 2021
## [1.4.1](v1.4.0...v1.4.1) (2021-09-21)

### Bug Fixes

* allow more lenient peers id load ([1fe71b6](1fe71b6)), closes [ambianic#51](https://github.com/ivelin/peerjs-python/issues/51)
* allow more lenient peers id load ([981ae27](981ae27))
* load peer ID from an empty file ([4cfe6fb](4cfe6fb)), closes [ambianic#52](https://github.com/ivelin/peerjs-python/issues/52)
* load peer ID from an empty file ([b9ff9fa](b9ff9fa))
* log_level not found in config ([fb0a2da](fb0a2da)), closes [ambianic#53](https://github.com/ivelin/peerjs-python/issues/53)
* log_level not found in config ([ddfedea](ddfedea))
* merge pull request [ambianic#38](https://github.com/ivelin/peerjs-python/issues/38) from ivelin/master ([12a4365](12a4365))
* peer reconnect error; closes [ambianic#31](https://github.com/ivelin/peerjs-python/issues/31) ([6b68cfa](6b68cfa))
* rename http-proxy to http_proxy ([8ee5e0b](8ee5e0b)), closes [ambianic#50](https://github.com/ivelin/peerjs-python/issues/50)
ivelin pushed a commit that referenced this issue Sep 24, 2021
* build: update deps versions

* build: test sem rel action

* build: update access tokens

* build: sem rel fix

* build: sem rel

* build: test new script

Signed-off-by: ivelin <ivelin@ambianic.ai>

* chore(release): 1.4.1 [skip ci]

## [1.4.1](ivelin/peerjs-python@v1.4.0...v1.4.1) (2021-09-21)

### Bug Fixes

* allow more lenient peers id load ([1fe71b6](ivelin@1fe71b6)), closes [#51](https://github.com/ivelin/peerjs-python/issues/51)
* allow more lenient peers id load ([981ae27](ivelin@981ae27))
* load peer ID from an empty file ([4cfe6fb](ivelin@4cfe6fb)), closes [#52](https://github.com/ivelin/peerjs-python/issues/52)
* load peer ID from an empty file ([b9ff9fa](ivelin@b9ff9fa))
* log_level not found in config ([fb0a2da](ivelin@fb0a2da)), closes [#53](https://github.com/ivelin/peerjs-python/issues/53)
* log_level not found in config ([ddfedea](ivelin@ddfedea))
* merge pull request [#38](https://github.com/ivelin/peerjs-python/issues/38) from ivelin/master ([12a4365](ivelin@12a4365))
* peer reconnect error; closes [#31](https://github.com/ivelin/peerjs-python/issues/31) ([6b68cfa](ivelin@6b68cfa))
* rename http-proxy to http_proxy ([8ee5e0b](ivelin@8ee5e0b)), closes [#50](https://github.com/ivelin/peerjs-python/issues/50)

* build: test new script

Signed-off-by: ivelin <ivelin@ambianic.ai>

* build: test new script

Signed-off-by: ivelin <ivelin@ambianic.ai>

* fix: test new script

Signed-off-by: ivelin <ivelin@ambianic.ai>

* chore(release): 1.4.2 [skip ci]

## [1.4.2](ivelin/peerjs-python@v1.4.1...v1.4.2) (2021-09-21)

### Bug Fixes

* test new script ([5090913](ivelin@5090913))

Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
ivelin pushed a commit that referenced this issue Oct 5, 2021
* build: update deps versions

* build: test sem rel action

* build: update access tokens

* build: sem rel fix

* build: sem rel

* build: test new script

Signed-off-by: ivelin <ivelin@ambianic.ai>

* chore(release): 1.4.1 [skip ci]

## [1.4.1](ivelin/peerjs-python@v1.4.0...v1.4.1) (2021-09-21)

### Bug Fixes

* allow more lenient peers id load ([1fe71b6](ivelin@1fe71b6)), closes [#51](https://github.com/ivelin/peerjs-python/issues/51)
* allow more lenient peers id load ([981ae27](ivelin@981ae27))
* load peer ID from an empty file ([4cfe6fb](ivelin@4cfe6fb)), closes [#52](https://github.com/ivelin/peerjs-python/issues/52)
* load peer ID from an empty file ([b9ff9fa](ivelin@b9ff9fa))
* log_level not found in config ([fb0a2da](ivelin@fb0a2da)), closes [#53](https://github.com/ivelin/peerjs-python/issues/53)
* log_level not found in config ([ddfedea](ivelin@ddfedea))
* merge pull request [#38](https://github.com/ivelin/peerjs-python/issues/38) from ivelin/master ([12a4365](ivelin@12a4365))
* peer reconnect error; closes [#31](https://github.com/ivelin/peerjs-python/issues/31) ([6b68cfa](ivelin@6b68cfa))
* rename http-proxy to http_proxy ([8ee5e0b](ivelin@8ee5e0b)), closes [#50](https://github.com/ivelin/peerjs-python/issues/50)

* build: test new script

Signed-off-by: ivelin <ivelin@ambianic.ai>

* build: test new script

Signed-off-by: ivelin <ivelin@ambianic.ai>

* fix: test new script

Signed-off-by: ivelin <ivelin@ambianic.ai>

* chore(release): 1.4.2 [skip ci]

## [1.4.2](ivelin/peerjs-python@v1.4.1...v1.4.2) (2021-09-21)

### Bug Fixes

* test new script ([5090913](ivelin@5090913))

* chore: checkpoint

Signed-off-by: ivelin <ivelin@ambianic.ai>

Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
github-actions bot pushed a commit that referenced this issue Oct 5, 2021
# [1.5.0](v1.4.5...v1.5.0) (2021-10-05)

### Features

* support for custom device display name ([d417830](d417830))
* support for HTTP PUT method ([#57](#57)) ([fdb1ac5](fdb1ac5)), closes [#51](#51) [#52](#52) [#53](#53) [#38](#38) [#31](#31) [#50](#50)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed released
Projects
No open projects
Ambianic Weekly Sprints
  
In progress
Development

No branches or pull requests

2 participants