gholt/swauth — Issue #23: Adding account fails with 500 Server Error
Author: sniperd
Created: 2012-01-31 22:45:47+00:00
State: open

I switched from tempauth to swath and followed your instructions and keep getting the follow error, any help would be greatly appreciated.

Jan 31 22:42:39 vhost0239 proxy-server STDOUT: EXCEPTION IN handle: Traceback (most recent call last):#012 File "/usr/lib/python2.6/site-packages/swauth-1.0.3.dev-py2.6.egg/swauth/middleware.py", line 415, in handle#012 return self.handle_request(req)(env, start_response)#012 File "/usr/lib/python2.6/site-packages/swauth-1.0.3.dev-py2.6.egg/swauth/middleware.py", line 482, in handle_request#012 req.response = handler(req)#012 File "/usr/lib/python2.6/site-packages/swauth-1.0.3.dev-py2.6.egg/swauth/middleware.py", line 1008, in handle_put_user#012 resp.headers['x-container-meta-account-id']}#012 File "/usr/lib/python2.6/site-packages/WebOb-1.1-py2.6.egg/webob/headers.py", line 16, in __getitem__#012 raise KeyError(key)#012KeyError: 'x-container-meta-account-id'#012: {'HTTP_X_CF_TRANS_ID': 'txec4d490d-09ee-436d-b1c8-34c337753daf', 'SCRIPT_NAME': '/auth/v2/test/tester', 'webob.adhoc_attrs': {'start_time': 1328049759.525063, 'bytes_transferred': '-', 'client_disconnect': False}, 'REQUEST_METHOD': 'PUT', 'PATH_INFO': '', 'SERVER_PROTOCOL': 'HTTP/1.0', 'eventlet.posthooks': [(>, (,), {})], 'SERVER_NAME': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1', 'eventlet.input': , 'HTTP_X_AUTH_ADMIN_KEY': 'xxxx', 'wsgi.url_scheme': 'https', 'SERVER_PORT': '777', 'HTTP_X_AUTH_USER_KEY': 'testing', 'HTTP_X_AUTH_ADMIN_USER': '.super_admin', 'HTTP_X_AUTH_USER_ADMIN': 'true', 'wsgi.input': , 'HTTP_HOST': 'localhost:777', 'swift.cache': , 'HTTPS': 'on', 'wsgi.multithread': True, 'wsgi.version': (1, 0), 'GATEWAY_INTERFACE': 'CGI/1.1', 'wsgi.run_once': False, 'wsgi.errors': , 'wsgi.multiprocess': False, 'CONTENT_TYPE': None, 'HTTP_ACCEPT_ENCODING': 'identity'}