[prev in list] [next in list] [prev in thread] [next in thread] 

List:       trac
Subject:    [Trac] UnicodeEncodeError when trying to see Ticket
From:       Jantso Porali <jantso.porali () gmail ! com>
Date:       2020-10-06 7:44:44
Message-ID: 4fa1e94b-af27-414a-8a64-4139dc429f7en () googlegroups ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello.

I noticed today that 99% of my tickets are failing to the error message 
below.

2020-10-06 10:38:34,229 Trac[main] ERROR: [172.18.0.3] Internal Server 
Error: <RequestWithSession "GET '/ticket/11397'">, referrer '
http://url/proj/ '

Traceback (most recent call last):

  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 647, in 
_dispatch_request

    dispatcher.dispatch(req)

  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 268, in 
dispatch

    iterable=chrome.use_chunked_encoding)

  File "build/bdist.linux-x86_64/egg/trac/web/chrome.py", line 1134, in 
render_template

    stream |= self._filter_stream(req, method, filename, stream, data)

  File 
"/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/core.py", 
line 133, in __or__

    return Stream(_ensure(function(self)), serializer=self.serializer)

  File "build/bdist.linux-x86_64/egg/trac/web/chrome.py", line 1447, in 
inner

    data)

  File "build/bdist.linux-x86_64/egg/ticketdep/web_ui.py", line 137, in 
filter_stream

    return self._filter_ticket_stream(req, method, filename, stream, data)

  File "build/bdist.linux-x86_64/egg/ticketdep/web_ui.py", line 210, in 
_filter_ticket_stream

    parser = XMLParser(StringIO(dep_str))

  File "/usr/lib64/python2.7/StringIO.py", line 57, in __init__

    buf = str(buf)

  File 
"/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/builder.py", \
 line 107, in __str__

    return str(self.generate())

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in 
position 5623: ordinal not in range(128)


So if I try and open one ticket, I get that error message. I'm running it 
via tracd and clients can connect via ReverseProxy which is hosted on 
Docker container with nginx running. I'm running version 1.2.6

-- 
You received this message because you are subscribed to the Google Groups "Trac \
Users" group. To unsubscribe from this group and stop receiving emails from it, send \
an email to trac-users+unsubscribe@googlegroups.com. To view this discussion on the \
web visit https://groups.google.com/d/msgid/trac-users/4fa1e94b-af27-414a-8a64-4139dc429f7en%40googlegroups.com.



[Attachment #5 (text/html)]

<p>Hello.</p><p>I noticed today that 99% of my tickets are failing to the error \
message below.</p><p>2020-10-06 10:38:34,229 Trac[main] ERROR: [172.18.0.3] Internal \
Server Error: &lt;RequestWithSession "GET '/ticket/11397'"&gt;, referrer '<a \
href="http://url/proj/">http://url/proj/</a>&nbsp;'<u></u><u></u></p><p>Traceback \
(most recent call last):<u></u><u></u></p><p>&nbsp; File \
"build/bdist.linux-x86_64/egg/trac/web/main.py", line 647, in \
_dispatch_request<u></u><u></u></p><p>&nbsp;&nbsp;&nbsp; \
dispatcher.dispatch(req)<u></u><u></u></p><p>&nbsp; File \
"build/bdist.linux-x86_64/egg/trac/web/main.py", line 268, in \
dispatch<u></u><u></u></p><p>&nbsp;&nbsp;&nbsp; \
iterable=chrome.use_chunked_encoding)<u></u><u></u></p><p>&nbsp; File \
"build/bdist.linux-x86_64/egg/trac/web/chrome.py", line 1134, in \
render_template<u></u><u></u></p><p>&nbsp;&nbsp;&nbsp; stream |= \
self._filter_stream(req, method, filename, stream, data)<u></u><u></u></p><p>&nbsp; \
File "/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/core.py", \
line 133, in __or__<u></u><u></u></p><p>&nbsp;&nbsp;&nbsp; return \
Stream(_ensure(function(self)), \
serializer=self.serializer)<u></u><u></u></p><p>&nbsp; File \
"build/bdist.linux-x86_64/egg/trac/web/chrome.py", line 1447, in \
inner<u></u><u></u></p><p>&nbsp;&nbsp;&nbsp; data)<u></u><u></u></p><p>&nbsp; File \
"build/bdist.linux-x86_64/egg/ticketdep/web_ui.py", line 137, in \
filter_stream<u></u><u></u></p><p>&nbsp;&nbsp;&nbsp; return \
self._filter_ticket_stream(req, method, filename, stream, \
data)<u></u><u></u></p><p>&nbsp; File \
"build/bdist.linux-x86_64/egg/ticketdep/web_ui.py", line 210, in \
_filter_ticket_stream<u></u><u></u></p><p>&nbsp;&nbsp;&nbsp;&nbsp;parser = \
XMLParser(StringIO(dep_str))<u></u><u></u></p><p>&nbsp;&nbsp;File \
"/usr/lib64/python2.7/StringIO.py", line 57, in \
__init__<u></u><u></u></p><p>&nbsp;&nbsp;&nbsp; buf = \
str(buf)<u></u><u></u></p><p>&nbsp; File \
"/usr/lib/python2.7/site-packages/Genshi-0.7-py2.7-linux-x86_64.egg/genshi/builder.py", \
line 107, in __str__<u></u><u></u></p><p>&nbsp;&nbsp;&nbsp; return \
str(self.generate())<u></u><u></u></p><p>UnicodeEncodeError: 'ascii' codec can't \
encode character u'\xe4' in position 5623: ordinal not in \
range(128)</p><p><br></p><p>So if I try and open one ticket, I get that error \
message. I'm running it via tracd and clients can connect via ReverseProxy which is \
hosted on Docker container with nginx running. I'm running version 1.2.6</p>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &quot;Trac \
Users&quot; group.<br /> To unsubscribe from this group and stop receiving emails \
from it, send an email to <a \
href="mailto:trac-users+unsubscribe@googlegroups.com">trac-users+unsubscribe@googlegroups.com</a>.<br \
/> To view this discussion on the web visit <a \
href="https://groups.google.com/d/msgid/trac-users/4fa1e94b-af27-414a-8a64-4139dc429f7 \
en%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/ \
msgid/trac-users/4fa1e94b-af27-414a-8a64-4139dc429f7en%40googlegroups.com</a>.<br />



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic