add traceback to debug 401 problem