question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Internal Server Error, HTTPSConnectionPool Error

See original GitHub issue
grip -b
 * Using personal access token
 * Running on http://localhost:6419/ (Press CTRL+C to quit)
 * Error: could not retrieve styles: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /joeyespo/grip (Caused by SSLError(SSLError(1, u'[SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)'),))
[2018-02-24 10:22:23,435] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
  File "/usr/local/Cellar/grip/4.4.0/libexec/vendor/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/Cellar/grip/4.4.0/libexec/vendor/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/Cellar/grip/4.4.0/libexec/vendor/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/Cellar/grip/4.4.0/libexec/vendor/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/Cellar/grip/4.4.0/libexec/vendor/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/Cellar/grip/4.4.0/libexec/lib/python2.7/site-packages/grip/app.py", line 174, in _render_page
    content = self.renderer.render(text, self.auth)
  File "/usr/local/Cellar/grip/4.4.0/libexec/lib/python2.7/site-packages/grip/renderers.py", line 77, in render
    r = requests.post(url, headers=headers, data=data, auth=auth)
  File "/usr/local/Cellar/grip/4.4.0/libexec/vendor/lib/python2.7/site-packages/requests/api.py", line 112, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/Cellar/grip/4.4.0/libexec/vendor/lib/python2.7/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/Cellar/grip/4.4.0/libexec/vendor/lib/python2.7/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/Cellar/grip/4.4.0/libexec/vendor/lib/python2.7/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/Cellar/grip/4.4.0/libexec/vendor/lib/python2.7/site-packages/requests/adapters.py", line 506, in send
    raise SSLError(e, request=request)
SSLError: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /markdown/raw (Caused by SSLError(SSLError(1, u'[SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)'),))
127.0.0.1 - - [24/Feb/2018 10:22:23] "GET / HTTP/1.1" 500 -

The message in browser,

Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

I think the connection to Github has no problem.

image

version

grip -V
Grip 4.4.0

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
shirohanacommented, Feb 26, 2018
4reactions
xavierchowcommented, Mar 2, 2018

So Github just turned off the TLS1.0 and only allows TLS1.2, I fixed the issue with the openssl upgrade and python reinstallation.

brew update
brew install openssl

Then openssl version should be 1.0.x

brew update
brew install pyenv
echo 'eval "$(pyenv init -)"' >> .zshrc
source .zshrc
pyenv install 3.5.2
pyenv global 3.5.2

python --version 
python -c 'import ssl; print ssl.OPENSSL_VERSION'

After that, you can see python is using openssl 1.0.x, and if you reinstall grip everything should be good.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Internal Server Error, HTTPSConnectionPool Error · Issue #262
Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there ......
Read more >
500 Internal server error - API Issues
500 Internal Server Error response code indicates that the server encountered an unexpected condition that prevented it from fulfilling the ...
Read more >
HTTPSConnectionPool Max retries exceeded - Stack Overflow
I've found that this error happens when some item in one of my views throws an exception. For example, when using the django...
Read more >
HTTPSConnectionPool(host='taxii-api.xforce.ibmcloud.com ...
Error when connecting to TAXII server (Error: HTTPSConnectionPool(host='taxii-api.xforce.ibmcloud.com', port=443): Read timed out. (read timeout=60)).
Read more >
HTTPSConnectionPool(host='cert.cloud.redhat.com', port=443)
I think the error described should not happen. All communication should happen using the configured proxy. I ran `sudo insights-client --support ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found