INFO 2011-01-31 22:55:22,137 main.py:2770] 1 more subscribers to
contact for: topic =
http://localhost:8000/atom/messages/from/marianoguerra/, delivery_mode
= normal
ERROR 2011-01-31 22:55:22,138 __init__.py:395] character mapping
must return integer, None or unicode
Traceback (most recent call last):
File "/home/mariano/dev/phsb/google_appengine/google/appengine/ext/webapp/__init__.py",
line 517, in __call__
handler.post(*groups)
File "/home/mariano/dev/phsb/pubsubhubbub/hub/main.py", line 650, in decorated
return func(myself, *args, **kwargs)
File "/home/mariano/dev/phsb/pubsubhubbub/hub/main.py", line 2818, in post
sub.secret or sub.verify_token or '', payload_utf8),
File "/home/mariano/dev/phsb/pubsubhubbub/hub/main.py", line 627, in sha1_hmac
return hmac.new(secret, data, hashlib.sha1).hexdigest()
File "/usr/lib/python2.6/hmac.py", line 133, in new
return HMAC(key, msg, digestmod)
File "/usr/lib/python2.6/hmac.py", line 72, in __init__
self.outer.update(key.translate(trans_5C))
TypeError: character mapping must return integer, None or unicode
INFO 2011-01-31 22:55:22,155 dev_appserver.py:3317] "POST
/work/push_events HTTP/1.1" 500 -
WARNING 2011-01-31 22:55:22,155 taskqueue_stub.py:586] Task named
"task2" on queue "event-delivery" failed with code 500; will retry in
30 seconds
any idea what can it be?
am I doing something wrong? it's been a while since I played with phsb :)
I tried without secret and HMAC and it worked, thanks!
seems to be a bug in the code then.
now I can continue working in the example :)