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

Project Guthenberg limits access #8

Open
heikkil opened this issue Jan 21, 2015 · 5 comments
Open

Project Guthenberg limits access #8

heikkil opened this issue Jan 21, 2015 · 5 comments

Comments

@heikkil
Copy link

heikkil commented Jan 21, 2015

Running the function ``speed-type-text` repeatedly showed me a couple of unexpected texts to type:

<h1>404 Not Found</h1><p>File not found.</p>- Peer has closed the GnuTLS connection
HTTP/1.0 404 Not Found
Date: Wed, 21 Jan 2015 11:09:06 GMT
Server: Apache
X-Rate-Limiter: ratelimiter2.php 53
Set-Cookie: session_id=77079fc7357dcd9a4059683ed4e95ccc362a55e9; Domain=.gutenberg.org; expires=Wed, 21 Jan 2015 11:39:06 GMT; Path=/
Accept-Ranges: none
X-Frame-Options: sameorigin
Connection: Close
X-Connection: Close
Content-Length: 44
Content-Type: text/html

Maybe add code to check if the retrieving words and if not, pick a paragraph from one of the existing text.
Also, what happens is the ``speed-type-text` for the first time without net connection?
Maybe include some short default text in the distribution?

@hagleitn
Copy link
Owner

Good points. I definitely need to add some error handling - should be easy to detect anything that doesn't return a 200 OK. I think I'll follow your suggestion. Pick something that's already there or display "connection problem" msg when not.

BTW - if you want to code that up, that'd be welcome too.

@hiaw
Copy link

hiaw commented Mar 29, 2016

I'm getting this repeatedly, unable to run speed-type-text

Contacting host: www.gutenberg.org:443
Opening TLS connection to `www.gutenberg.org'...
Opening TLS connection with `gnutls-cli --insecure -p 443 www.gutenberg.org'...failed
Opening TLS connection with `gnutls-cli --insecure -p 443 www.gutenberg.org --protocols ssl3'...failed
Opening TLS connection with `openssl s_client -connect www.gutenberg.org:443 -no_ssl2 -ign_eof'...failed
Opening TLS connection to `www.gutenberg.org'...failed
url-http: Could not create connection to www.gutenberg.org:443

I find that if I change the gutenberg address to http instead of https, it works.

@prayagupa
Copy link

I'm having the same issue accessing gutenberg,

For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...
Contacting host: www.gutenberg.org:443
Opening TLS connection to `www.gutenberg.org'...
Opening TLS connection with `gnutls-cli --insecure -p 443 www.gutenberg.org'...failed
Opening TLS connection with `gnutls-cli --insecure -p 443 www.gutenberg.org --protocols ssl3'...failed
Opening TLS connection with `openssl s_client -connect www.gutenberg.org:443 -no_ssl2 -ign_eof'...failed
Opening TLS connection to `www.gutenberg.org'...failed
url-http: Could not create connection to www.gutenberg.org:443

@prayagupa
Copy link

@hiaw you mean in speed-text.el, it doesn't work that way either for me.

(defvar speed-type--gb-url-format
  "https://www.gutenberg.org/cache/epub/%d/pg%d.txt")

https://github.com/hagleitn/speed-type/blob/master/speed-type.el#L124

@jasonm23
Copy link

Workaround in emacs.d

(setq speed-type--gb-url-format
  "http://www.gutenberg.org/cache/epub/%d/pg%d.txt")

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

5 participants