Page MenuHomePhabricator

UnicodeDecodeError invalid continuation byte on ms-fe1004
Closed, ResolvedPublic

Description

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/catch_errors.py", line 36, in handle_request
    resp = self._app_call(env)
File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 522, in _app_call
    resp = self.app(env, self._start_response)
File "/usr/lib/python2.7/dist-packages/swift/common/middleware/gatekeeper.py", line 90, in __call__
    return self.app(env, gatekeeper_response)
  File "/usr/local/lib/python2.7/dist-packages/wmf/rewrite.py", line 366, in __call__
    return context.handle_request(env, start_response)
  File "/usr/local/lib/python2.7/dist-packages/wmf/rewrite.py", line 167, in handle_request
    req.path_info = re.sub(r'/{2,}', '/', req.path_info)
  File "/usr/lib/python2.7/dist-packages/webob/descriptors.py", line 68, in fget
    return req.encget(key, encattr=encattr)
  File "/usr/lib/python2.7/dist-packages/webob/request.py", line 178, in encget
    return val.decode(encoding)
  File "/usr/lib/python2.7/encodings/utf_8.py", 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

https://gerrit.wikimedia.org/r/273431

Mentioned in SAL [2016-03-03T12:22:45Z] <godog> temporary repool ms-fe1004, apply https://gerrit.wikimedia.org/r/#/c/273431 to test T128081

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

https://gerrit.wikimedia.org/r/273431

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