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

Encoding issue #29

Open
wetneb opened this issue Dec 17, 2019 · 0 comments
Open

Encoding issue #29

wetneb opened this issue Dec 17, 2019 · 0 comments

Comments

@wetneb
Copy link
Member

wetneb commented Dec 17, 2019

Traceback (most recent call last):
  File "listener.py", line 33, in <module>
    for i, batch in enumerate(grouper(s.stream(fetch_from), 50)):
  File "/data/project/editgroups/www/python/src/store/stream.py", line 13, in stream
    for event in EventSource(url):
  File "/data/project/editgroups/listener_venv/lib/python3.5/site-packages/sseclient.py", line 98, in __next__
    self._connect()
  File "/data/project/editgroups/listener_venv/lib/python3.5/site-packages/sseclient.py", line 56, in _connect
    self.resp = requester.get(self.url, stream=True, **self.requests_kwargs)
  File "/data/project/editgroups/listener_venv/lib/python3.5/site-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/data/project/editgroups/listener_venv/lib/python3.5/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/data/project/editgroups/listener_venv/lib/python3.5/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/data/project/editgroups/listener_venv/lib/python3.5/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/data/project/editgroups/listener_venv/lib/python3.5/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/data/project/editgroups/listener_venv/lib/python3.5/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/data/project/editgroups/listener_venv/lib/python3.5/site-packages/urllib3/connectionpool.py", line 354, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.5/http/client.py", line 1107, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.5/http/client.py", line 1147, in _send_request
    self.putheader(hdr, value)
  File "/usr/lib/python3.5/http/client.py", line 1079, in putheader
    values[i] = one_value.encode('latin-1')
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-1: ordinal not in range(256)
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