
Traceback (most recent call last):


 "/srv/demo/venv/lib/python3.7/site-packages/gunicorn/workers/sync.py", line 135, in handle

self.handle_request(listener, req, client, addr)


 "/srv/demo/venv/lib/python3.7/site-packages/gunicorn/workers/sync.py", line 183, in handle_request

resp.close()


 "/srv/demo/venv/lib/python3.7/site-packages/gunicorn/http/wsgi.py", line 409, in close

self.send_headers()


 "/srv/demo/venv/lib/python3.7/site-packages/gunicorn/http/wsgi.py", line 329, in send_headers

util.write(self.sock, util.to_bytestring(header_str, "ascii"))


 "/srv/demo/venv/lib/python3.7/site-packages/gunicorn/util.py", line 507, in to_bytestring

return value.encode(encoding)

UnicodeEncodeError: 'ascii' codec can't encode characters in position 141-142: ordinal not in range(128)

Traceback (most recent call last):


 "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner

self.run()


 "/usr/lib/python3.6/threading.py", line 864, in run

self._target(*self._args, **self._kwargs)


 "/usr/local/lib/python3.6/dist-packages/flexget/task_queue.py", line 53, in run

self.current_task.manager.crash_report()


 "/usr/local/lib/python3.6/dist-packages/flexget/manager.py", line 1035, in crash_report

outfile.writelines(flexget.log.debug_buffer)


 "/usr/lib/python3.6/codecs.py", line 724, in writelines

return self.writer.writelines(list)


 "/usr/lib/python3.6/codecs.py", line 384, in writelines

self.write(''.join(list))


 "/usr/lib/python3.6/codecs.py", line 376, in write

data, consumed = self.encode(object, self.errors)
UnicodeEncodeError: 'utf-8' codec can't encode character '\udce4' in position 25163: surrogates not allowed
