jprq icon indicating copy to clipboard operation
jprq copied to clipboard

error after trying to refresh the page

Open fxddev opened this issue 4 years ago • 1 comments

C:\Users\Asus>jprq 8000 -s=tes Online at https://tes.jprq.live/ GET / 200 GET / 200 GET /robots.txt 404 GET /robots.txt 404 GET /robots.txt 404 GET / 200 GET / 304 GET / 304 GET / 304 GET / 304 GET / 304 Traceback (most recent call last): File "c:\users\asus\appdata\local\programs\python\python39\lib\site-packages\websockets\protocol.py", line 827, in transfer_data message = await self.read_message() File "c:\users\asus\appdata\local\programs\python\python39\lib\site-packages\websockets\protocol.py", line 895, in read_message frame = await self.read_data_frame(max_size=self.max_size) File "c:\users\asus\appdata\local\programs\python\python39\lib\site-packages\websockets\protocol.py", line 971, in read_data_frame frame = await self.read_frame(max_size) File "c:\users\asus\appdata\local\programs\python\python39\lib\site-packages\websockets\protocol.py", line 1047, in read_frame frame = await Frame.read( File "c:\users\asus\appdata\local\programs\python\python39\lib\site-packages\websockets\framing.py", line 105, in read data = await reader(2) File "c:\users\asus\appdata\local\programs\python\python39\lib\asyncio\streams.py", line 723, in readexactly await self._wait_for_data('readexactly') File "c:\users\asus\appdata\local\programs\python\python39\lib\asyncio\streams.py", line 517, in _wait_for_data await self._waiter asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "C:\Users\Asus\AppData\Local\Programs\Python\Python39\Scripts\jprq-script.py", line 33, in sys.exit(load_entry_point('jprq==1.3.0', 'console_scripts', 'jprq')()) File "c:\users\asus\appdata\local\programs\python\python39\lib\site-packages\jprq\main.py", line 29, in main loop.run_until_complete( File "c:\users\asus\appdata\local\programs\python\python39\lib\asyncio\base_events.py", line 642, in run_until_complete return future.result() File "c:\users\asus\appdata\local\programs\python\python39\lib\site-packages\jprq\tunnel.py", line 22, in open_tunnel message = json.loads(await websocket.recv()) File "c:\users\asus\appdata\local\programs\python\python39\lib\site-packages\websockets\protocol.py", line 509, in recv await self.ensure_open() File "c:\users\asus\appdata\local\programs\python\python39\lib\site-packages\websockets\protocol.py", line 812, in ensure_open raise self.connection_closed_exc() websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason

fxddev avatar Jul 23 '21 10:07 fxddev

Hello, thanks for reporting this issue. This happens when the server restarts and connections drop. It usually happens once a day. There're plans for implementing reconnecting feature when the server-side closes the connection abnormally.

azimjohn avatar Aug 19 '21 14:08 azimjohn

Hello, I have just released version 2.0. It fixes this and many other issues.

You can take a look at the readme to learn how to install and use it. Let me know if you have any issues 🙂

azimjohn avatar Feb 27 '23 09:02 azimjohn