[Openstack] [SWIFT] swift 'generator' object not callable

Samuel Merritt sam at swiftstack.com
Thu Feb 20 20:10:28 UTC 2014


On 2/20/14 10:41 AM, Stephen Wood wrote:
> Can someone provide more details about this error that I'm seeing
> periodically?
>
> Feb 20 18:31:58 swiftproxy swift 'generator' object is not callable:
> #012Traceback (most recent call last):#012  File
> "/usr/local/lib/python2.7/dist-packages/swift3-1.7.0-py2.7.egg/swift3/middleware.py",
> line 874, in __call__#012    return self.handle_request(env,
> start_response)#012  File
> "/usr/local/lib/python2.7/dist-packages/swift3-1.7.0-py2.7.egg/swift3/middleware.py",
> line 954, in handle_request#012    return res(env,
> start_response)#012TypeError: 'generator' object is not callable (txn:
> tx4565a4ff89334ab39c9be-0053064a1ddalswiftproxy01) (client_ip: xx.xx.xx.xx)
>
> I'm using the swift3 middleware so that we can make s3-style requests to
> the server and that looks to be the source of these errors. I only see
> them very rarely.

That looks like a bug in swift3; something is expecting a callable 
object, but what it's getting is a generator, which is not callable.

You should use the transaction ID to figure out what kind of request is 
triggering the failure, and then go report a bug at 
https://github.com/fujita/swift3/.

Note that swift3 is not part of OpenStack Swift, so please report any 
bugs on Github and not in Launchpad.





More information about the Openstack mailing list