evmer / perlego-downloader

Download books from Perlego.com in PDF format
MIT License
106 stars 52 forks source link

Connection to remote host was lost? #7

Closed lyyangyy closed 1 year ago

lyyangyy commented 1 year ago

Hi all!

Sorry, i'm relatively new to all these coding, so hopefully it's an easy fix for someone out there. I followed the instructions as per your video, however I'm receiving the following error:

"websocket._exceptions.WebSocketConnectionClosedException: Connection to remote host was lost."

Any help would be appreciated. Thanks in advance

Screen Shot 2022-09-11 at 23 49 37

evmer commented 1 year ago

Hello!

Unfortunately it's a known issue, see #6. The websocket library is unstable and connection exceptions are not properly handled. I plan to refactor the script, so please have patience. For now, you can try to restart the script and hopefully it'll be fine.

lyyangyy commented 1 year ago

Hello!

Unfortunately it's a known issue, see #6. The websocket library is unstable and connection exceptions are not properly handled. I plan to refactor the script, so please have patience. For now, you can try to restart the script and hopefully it'll be fine.

Thanks a lot for the prompt reply. You're doing gods work :D

I wish I could be of more assistance, but this is all new to me :( Thanks again!

evmer commented 1 year ago

The bug is now fixed. If the websocket connection is lost, the script will try to reconnect and resume the download:

image