Hello,
I was wondering when if you have entered any values for "secret" or
HMAC secret at http://localhost:8080/subscribe ?

Cos if you did that, it will somehow result on some GAE error.

See this blog post and see if it works for you :
http://www.liangeugene.com/2011/02/running-pubsubhubbub-on-ubuntu-10-04-python-2-6/

Best Regards.

On Feb 1, 6:56 am, Mariano Guerra <[email protected]> wrote:
> hi!, I'm working on the new version of the getting started guid, when
> I run a task in the event-delivery task queue I see in the shell:
>
> 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 :)

Reply via email to