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

ConnectionError('N/A', str(e), e) #31

Open
dieee opened this issue Feb 3, 2020 · 0 comments
Open

ConnectionError('N/A', str(e), e) #31

dieee opened this issue Feb 3, 2020 · 0 comments

Comments

@dieee
Copy link

dieee commented Feb 3, 2020

Hi, could you tell me what this error is?

ERROR in app: Exception on / [GET]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/user/tor/freshonions-torscraper/lib/tor_cache.py", line 60, in my_decorator
response = f(*args, **kwargs)
File "<auto generated wrapper of index() function>", line 2, in index
File "/home/user/.local/lib/python2.7/site-packages/pony/orm/core.py", line 528, in new_func
result = func(*args, **kwargs)
File "/home/user/tor/freshonions-torscraper/web/app.py", line 156, in index
r, n_results = helpers.render_elasticsearch(context)
File "<auto generated wrapper of render_elasticsearch() function>", line 2, in render_elasticsearch
File "/home/user/.local/lib/python2.7/site-packages/pony/orm/core.py", line 515, in new_func
return func(*args, **kwargs)
File "/home/user/tor/freshonions-torscraper/lib/helpers.py", line 28, in render_elasticsearch
results = elasticsearch_pages(context, sort, page)
File "/home/user/tor/freshonions-torscraper/lib/tor_elasticsearch.py", line 89, in elasticsearch_pages
return query.execute()
File "/usr/local/lib/python2.7/dist-packages/elasticsearch_dsl/search.py", line 639, in execute
**self._params
File "/home/user/.local/lib/python2.7/site-packages/elasticsearch/client/utils.py", line 73, in _wrapped
return func(*args, params=params, **kwargs)
File "/home/user/.local/lib/python2.7/site-packages/elasticsearch/client/init.py", line 632, in search
doc_type, '_search'), params=params, body=body)
File "/home/user/.local/lib/python2.7/site-packages/elasticsearch/transport.py", line 312, in perform_request
status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
File "/home/user/.local/lib/python2.7/site-packages/elasticsearch/connection/http_urllib3.py", line 123, in perform_request
raise ConnectionError('N/A', str(e), e)
ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x7f71b5fcf350>: Failed to establish a new connection: [Errno -2] Name or service not known) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7f71b5fcf350>: Failed to establish a new connection: [Errno -2] Name or service not known)
127.0.0.1 - - [03/Feb/2020 12:07:36] "GET /?rep=n%2Fa&search=port&submit=Go+%3E%3E%3E HTTP/1.1" 500 -
127.0.0.1 - - [03/Feb/2020 12:09:24] "GET / HTTP/1.1" 200 -
[2020-02-03 12:09:27,196] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/user/tor/freshonions-torscraper/lib/tor_cache.py", line 60, in my_decorator
response = f(*args, **kwargs)
File "<auto generated wrapper of index() function>", line 2, in index
File "/home/user/.local/lib/python2.7/site-packages/pony/orm/core.py", line 528, in new_func
result = func(*args, **kwargs)
File "/home/user/tor/freshonions-torscraper/web/app.py", line 156, in index
r, n_results = helpers.render_elasticsearch(context)
File "<auto generated wrapper of render_elasticsearch() function>", line 2, in render_elasticsearch
File "/home/user/.local/lib/python2.7/site-packages/pony/orm/core.py", line 515, in new_func
return func(*args, **kwargs)
File "/home/user/tor/freshonions-torscraper/lib/helpers.py", line 28, in render_elasticsearch
results = elasticsearch_pages(context, sort, page)
File "/home/user/tor/freshonions-torscraper/lib/tor_elasticsearch.py", line 89, in elasticsearch_pages
return query.execute()
File "/usr/local/lib/python2.7/dist-packages/elasticsearch_dsl/search.py", line 639, in execute
**self._params
File "/home/user/.local/lib/python2.7/site-packages/elasticsearch/client/utils.py", line 73, in _wrapped
return func(*args, params=params, **kwargs)
File "/home/user/.local/lib/python2.7/site-packages/elasticsearch/client/init.py", line 632, in search
doc_type, '_search'), params=params, body=body)
File "/home/user/.local/lib/python2.7/site-packages/elasticsearch/transport.py", line 312, in perform_request
status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
File "/home/user/.local/lib/python2.7/site-packages/elasticsearch/connection/http_urllib3.py", line 123, in perform_request
raise ConnectionError('N/A', str(e), e)
ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x7f71b61bb910>: Failed to establish a new connection: [Errno -2] Name or service not known) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7f71b61bb910>: Failed to establish a new connection: [Errno -2] Name or service not known)

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

1 participant