Page MenuHomePhabricator

UnicodeDecodeError invalid continuation byte on ms-fe1004
Closed, ResolvedPublic


seen today on ms-fe1004 after the trusty upgrade

Feb 25 15:11:40 ms-fe1004 proxy-server: Error: An error occurred: 
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/swift/common/middleware/", line 36, in handle_request
    resp = self._app_call(env)
File "/usr/lib/python2.7/dist-packages/swift/common/", line 522, in _app_call
    resp =, self._start_response)
File "/usr/lib/python2.7/dist-packages/swift/common/middleware/", line 90, in __call__
    return, gatekeeper_response)
  File "/usr/local/lib/python2.7/dist-packages/wmf/", line 366, in __call__
    return context.handle_request(env, start_response)
  File "/usr/local/lib/python2.7/dist-packages/wmf/", line 167, in handle_request
    req.path_info = re.sub(r'/{2,}', '/', req.path_info)
  File "/usr/lib/python2.7/dist-packages/webob/", line 68, in fget
    return req.encget(key, encattr=encattr)
  File "/usr/lib/python2.7/dist-packages/webob/", line 178, in encget
    return val.decode(encoding)
  File "/usr/lib/python2.7/encodings/", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 46: invalid continuation byte (txn: txce1840bfebf740a297c62-0056cf19ac) (client_ip: XXXXXX)

Event Timeline

Change 273431 had a related patch set uploaded (by Filippo Giunchedi):
swift: return 400 on UnicodeDecodeErrors

Mentioned in SAL [2016-03-03T12:22:45Z] <godog> temporary repool ms-fe1004, apply to test T128081

Change 273431 merged by Filippo Giunchedi:
swift: return 400 on UnicodeDecodeErrors

fgiunchedi closed this task as Resolved.Mar 4 2016, 10:50 AM

logging is now enabled for these exceptions and we're returning 400 to clients