Skip to content

Instantly share code, notes, and snippets.

@saikrishna321
Created March 6, 2023 08:53
Show Gist options
  • Save saikrishna321/394c388d59fca3cf0082857d37664289 to your computer and use it in GitHub Desktop.
Save saikrishna321/394c388d59fca3cf0082857d37664289 to your computer and use it in GitHub Desktop.
[mitmproxy-node plugin] Unexpected error: (<class 'TypeError'>, TypeError("'Lock' object is not iterable"), <traceback object at 0x103db7bc0>)
Traceback (most recent call last):
File "/Users/saikrishna/Downloads/git/mitproxyappium/node_modules/mitmproxy/scripts/proxy.py", line 224, in websocket_loop
await websocket.ping()
File "/Users/saikrishna/Library/Python/3.9/lib/python/site-packages/websockets/protocol.py", line 456, in ping
yield from self.write_frame(OP_PING, data)
File "/Users/saikrishna/Library/Python/3.9/lib/python/site-packages/websockets/protocol.py", line 740, in write_frame
with (yield from self._drain_lock):
TypeError: 'Lock' object is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/saikrishna/Downloads/git/mitproxyappium/node_modules/mitmproxy/scripts/proxy.py", line 238, in websocket_loop
pass
File "/Users/saikrishna/Library/Python/3.9/lib/python/site-packages/websockets/py35/client.py", line 6, in __aexit__
await self.ws_client.close()
File "/Users/saikrishna/Library/Python/3.9/lib/python/site-packages/websockets/protocol.py", line 391, in close
yield from asyncio.wait_for(
File "/Users/saikrishna/Downloads/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/tasks.py", line 481, in wait_for
return fut.result()
File "/Users/saikrishna/Library/Python/3.9/lib/python/site-packages/websockets/protocol.py", line 786, in write_close_frame
yield from self.write_frame(OP_CLOSE, data, State.CLOSING)
File "/Users/saikrishna/Library/Python/3.9/lib/python/site-packages/websockets/protocol.py", line 740, in write_frame
with (yield from self._drain_lock):
TypeError: 'Lock' object is not iterable
[mitmproxy-node plugin] Unexpected error: (<class 'TypeError'>, TypeError("'Lock' object is not iterable"), <traceback object at 0x103df5340>)
Traceback (most recent call last):
File "/Users/saikrishna/Downloads/git/mitproxyappium/node_modules/mitmproxy/scripts/proxy.py", line 224, in websocket_loop
await websocket.ping()
File "/Users/saikrishna/Library/Python/3.9/lib/python/site-packages/websockets/protocol.py", line 456, in ping
yield from self.write_frame(OP_PING, data)
File "/Users/saikrishna/Library/Python/3.9/lib/python/site-packages/websockets/protocol.py", line 740, in write_frame
with (yield from self._drain_lock):
TypeError: 'Lock' object is not iterable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment