Skip to content

http://127.0.0.1:8081: Remote end closed connection without response #67

@VicVer09

Description

@VicVer09

Running on ubuntu18.04. Reinstalled OS a week ago and tried to use language tool only to keep getting the same error.

Installed language tool using upgraded pip
pip install --user --upgrade language-check

`Python 3.6.8 (default, Jan 14 2019, 11:02:34)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.

import language_check
tool = language_check.LanguageTool('en-US')
text = u'A sentence with a error in the Hitchhiker’s Guide tot he Galaxy'
matches = tool.check(text)
Traceback (most recent call last):
File "/home/victor/.local/lib/python3.6/site-packages/language_check/init.py", line 319, in _get_root
with urlopen(url, data, cls._TIMEOUT) as f:
File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.6/urllib/request.py", line 526, in open
response = self._open(req, data)
File "/usr/lib/python3.6/urllib/request.py", line 544, in _open
'_open', req)
File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/lib/python3.6/urllib/request.py", line 1346, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.6/urllib/request.py", line 1321, in do_open
r = h.getresponse()
File "/usr/lib/python3.6/http/client.py", line 1331, in getresponse
response.begin()
File "/usr/lib/python3.6/http/client.py", line 297, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.6/http/client.py", line 266, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/home/victor/.local/lib/python3.6/site-packages/language_check/init.py", line 250, in check
root = self._get_root(self._url, self._encode(text, srctext))
File "/home/victor/.local/lib/python3.6/site-packages/language_check/init.py", line 326, in _get_root
raise Error('{}: {}'.format(cls._url, e))
language_check.Error: http://127.0.0.1:8081: Remote end closed connection without response

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions