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

URL request timeout - Error retrieving book number XYZ #43

Open
stewmehr opened this issue Dec 11, 2023 · 2 comments
Open

URL request timeout - Error retrieving book number XYZ #43

stewmehr opened this issue Dec 11, 2023 · 2 comments

Comments

@stewmehr
Copy link

Hi there,

trying to launch speed-type via M-x speed-type-text fails consistently with the error message in the issue title. The workaround of switching from https to http as recommended in #3 does not solve my problem either.

I am afraid that this issue cannot be blamed on speed-type as I cannot access any of the https://www.gutenberg.org/cache/epub/%d/pg%d.txt links at all from inside emacs. I have noticed that these book links open just fine in my browser, so I played around a bit with the request timeout time; alas, to no avail. The following snippet which attempts to download "Ulyisses", i.e. book 4300, fails as well, despite a timeout threshold of 60s.

(let ((url (speed-type--gb-url 4300))
     (url-request-method "GET"))
  (url-retrieve-synchronously url nil nil 60))

Has anybody else had similar issues recently?

@dakra
Copy link
Owner

dakra commented Dec 11, 2023

Strange. Can you download other things from insisde Emacs or only not gutenberg.de? What OS and Emacs version are you on?
One possible workaround would be to simply download the books manually and placing them in the correct folder.

@stewmehr
Copy link
Author

I am on macos 13.6.1 using Emacs 29.1.

The problem seems to be limited to gutenberg.org, so I guess I'll just have to download the resources manually :)

Can we leave this issue open for a little while so that other users facing the same problem can find it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants