Hi there! I have a web2py application running, it's been running for a long time, it is a website that serves hundreds of thousands of visits per day, and everything works really good. However, everyonce in a while (let's say, every 3-4 days) an error ticket is generated with this traceback:
Traceback (most recent call last): File "/var/www/medios/gluon/restricted.py", line 227, in restricted exec ccode in environment File "applications/website/compiled/views.lista.html.py", line 971, in File "/var/www/medios/gluon/html.py", line 387, in URL other += '?%s' % urllib.urlencode(list_vars) File "/usr/lib/python2.7/urllib.py", line 1332, in urlencode v = quote_plus(str(v)) UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 5: ordinal not in range(128) The code portion of my "compiled/views.lista.html.py" involved in the error is the call to this function get_url(page), used to create a paginator in the view: def get_url(page, arg_index): args = request.args or [] if len(args) < (arg_index + 1): args.append(None) args[arg_index] = pagina try: return URL(args=args, vars=request.vars) except: return URL(args=args) As you see, I put a try: except block there, because I thought maybe the request.vars had something to do with it. But the error keeps triggering every 3-4 days, and I don't know how to debug it, or where to start. Of course, I've hit the application with every possible combination of request.vars and request.args, but I can't trigger the error. Can I do anything else to avoid the error? Thanks in advance! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.