evmer/perlego-downloader

The read operation timed out

Closed this issue · 12 comments

My internet is fine, what is this read operation time out mean?

evmer commented

Duplicate of #11

@evmer I just re read the error again, and it was different error.
on issue #11 it say connection timed out.

but mine was "read operation timed out"

evmer commented

Can you please post here the full output?

image

The printed error was on line 62

evmer commented

Thank you. Can you share the BOOK_ID?

this is the book that I want
BOOK_ID = "2802894"

I try to use the book id from your video (youtube), it result the same error
BOOK_ID = "2173908"

evmer commented

Can you add print(data) after line 61 so we can debug? Then try to re-run the script and post here the output.

image

image

The error say it was Unauthorized, but I copy the Bearer token from firefox network tab.
I try use chrome too to get the auth token, but it result the same.

Btw thank you for your fast reply, I never touch python so idk how debug it.
but print keyword really give me the root of the problem, although im not sure why my auth token didnt work

After I remove the Bearer, it working :)

Whenever I consume API, I always need to include Bearer keyword.
This is the first time that I should omit the Bearer keyword.

thank you once again

Can you add print(data) after line 61 so we can debug? Then try to re-run the script and post here the output.

image

I've add it and I still got this error:
% python3 downloader.py
{'event': 'error', 'data': {'message': 'Failed to validate recaptcha token', 'code': 6}}
download error: Connection timed out

I only copid the AUTH_TOKEN without "Bearer"

Screenshot 2022-11-22 at 7 24 51 PM

Screenshot 2022-11-22 at 7 25 37 PM

I've used Firefox to get another auth and same issue "Failed to validate recaptcha token"

thanks

Can you add print(data) after line 61 so we can debug? Then try to re-run the script and post here the output.
image

I've add it and I still got this error: % python3 downloader.py {'event': 'error', 'data': {'message': 'Failed to validate recaptcha token', 'code': 6}} download error: Connection timed out

I only copid the AUTH_TOKEN without "Bearer"

Screenshot 2022-11-22 at 7 24 51 PM Screenshot 2022-11-22 at 7 25 37 PM

I've used Firefox to get another auth and same issue "Failed to validate recaptcha token"

thanks

Same issue here. The "reCaptchaToken": AUTH_TOKEN in line 32 might need to be changed to use appropriate value. I have checked the JSON equivalent string of that line on https://websocketking.com/ and same error response shows up.

Works without issue with the latest commit. Thanks.