python-oops-datedir2amqp requires a null --key value

Bug #898460 reported by Steve McInerney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-oops-datedir2amqp
Triaged
Low
Unassigned

Bug Description

launchpad@asuka:/srv/oops-datedir2amqp/python-oops-datedir2amqp$ bin/datedir2amqp --exchange oopses --host asuka --username oops-datedir2amqp --password <blah> --vhost staging.launchpad.net --repo /srv/staging.launchpad.net/var/local-oopses-launchpad
Traceback (most recent call last):
  File "bin/datedir2amqp", line 26, in <module>
    oops_datedir2amqp.main()
  File "/srv/oops-datedir2amqp/python-oops-datedir2amqp-rev-3/oops_datedir2amqp/main.py", line 82, in main
    repo.republish(publisher)
  File "/srv/oops-datedir2amqp/python-oops-datedir2amqp-rev-3/eggs/oops_datedir_repo-0.0.10-py2.6.egg/oops_datedir_repo/repository.py", line 171, in republish
    oopsid = publisher(report)
  File "/srv/oops-datedir2amqp/python-oops-datedir2amqp-rev-3/eggs/oops_amqp-0.0.4-py2.6.egg/oops_amqp/publisher.py", line 95, in __call__
    message, self.exchange_name, routing_key=self.routing_key)
  File "/srv/oops-datedir2amqp/python-oops-datedir2amqp-rev-3/eggs/amqplib-0.6.1-py2.6.egg/amqplib/client_0_8/channel.py", line 2219, in basic_publish
    args.write_shortstr(routing_key)
  File "/srv/oops-datedir2amqp/python-oops-datedir2amqp-rev-3/eggs/amqplib-0.6.1-py2.6.egg/amqplib/client_0_8/serialization.py", line 337, in write_shortstr
    if len(s) > 255:
TypeError: object of type 'NoneType' has no len()

add --key "", and all works.

Benji York (benji)
Changed in python-oops-datedir2amqp:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.