Hi Steve,

It seems that I forgot to do it again with the last version of PuSH i
downloaded... I'm still having some problems though! weird thing,
because i get the error listed below but at the same time, if i go to
_ah/admin/datastore I can see that the feed has been received in the
hub side, but then i get a HTTP 500 error code... Might it be my own
problem?

INFO     2011-06-15 17:02:38,496 main.py:2770] 1 more subscribers to
contact for: topic =
http://www.rememberthemilk.com/atom/fingolion/15098186/?tok=eJwNzMkJAzEMAMCKDNZlS*XoclhYNo*kf5IpYOj4BmyEDgmUQ8ZVM0JLzl4Yqd0LYmtGYUvMNCpPMlPSJB-nel7v*3o-474*3wEyTUHXSEW14GoHw5yZFUuA1HHCZCIORV9FuxeyhxtDdWs6y7*l-AFlsiwX,
delivery_mode = normal
ERROR    2011-06-15 17:02:38,497 __init__.py:463] character mapping
must return integer, None or unicode
Traceback (most recent call last):
  File "/home/fingolion/google_appengine/google/appengine/ext/webapp/
__init__.py", line 702, in __call__
    handler.post(*groups)
  File "/home/fingolion/pubsubhubbub-read-only/hub/main.py", line 650,
in decorated
    return func(myself, *args, **kwargs)
  File "/home/fingolion/pubsubhubbub-read-only/hub/main.py", line
2818, in post
    sub.secret or sub.verify_token or '', payload_utf8),
  File "/home/fingolion/pubsubhubbub-read-only/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-06-15 17:02:38,537 dev_appserver.py:4151] "POST /work/
push_events HTTP/1.1" 500 -
WARNING  2011-06-15 17:02:38,539 taskqueue_stub.py:1525] Task named
"task2" on queue "polling" failed with code 500; will retry in 30
seconds


On Jun 15, 6:27 pm, Steve Hakusa <[email protected]> wrote:
> Hi Mikel,
>
> Did you make the change suggested in the thread you linked to, removing
> "memory_only=False" in take_polling_action?
>
> Steve
>
>
>
> On Wed, Jun 15, 2011 at 10:15 AM, Mikel <[email protected]> wrote:
> > Hi Steve,
>
> > Thanks a lot! It seems that it was that little thing what i had to do
> > but even tho if it now does the polling, it doesn't seem to send it to
> > my callback URL... is there anything else I should do to get that or
> > should be sent to the callback automatically? Im looking at the queues
> > in the admin's task list but all of them are empty. If it's of any
> > use, I'm using SDK 1.5.0 and this is what i get in the console after
> > polling:
>
> > INFO     2011-06-15 14:03:27,061 main.py:1776] Polling starting afresh
> > for start time 2011-06-15 14:02:27.061342
> > INFO     2011-06-15 14:03:27,113 dev_appserver.py:4151] "GET /work/
> > poll_bootstrap HTTP/1.1" 200 -
> > INFO     2011-06-15 14:03:27,262 main.py:2921] Handling polling for
> > sequence = poll-1308146547, current_key = '', poll_type = u'bootstrap'
> > INFO     2011-06-15 14:03:27,285 main.py:2931] Found 1 more feeds to
> > poll, ended at
> >http://api.flickr.com/services/feeds/photos_public.gne?id=58624204@N07
> > INFO     2011-06-15 14:03:27,364 dev_appserver.py:4151] "POST /work/
> > poll_bootstrap HTTP/1.1" 200 -
> > INFO     2011-06-15 14:03:27,398 dev_appserver_index.py:254] Updating /
> > home/fingolion/pubsubhubbub-read-only/hub/index.yaml
> > INFO     2011-06-15 14:03:27,511 main.py:2921] Handling polling for
> > sequence = poll-1308146547, current_key =
>
> > u'agxwdWJzdWJodWJidWJyPAsSCUtub3duRmVlZCItaGFzaF8xMGU0ZmJhNTE3YzFlNjcxZDYxM­TAzZGQ5ODUxNTU1NmEzYzIzYzZmDA',
> > poll_type = u'bootstrap'
> > INFO     2011-06-15 14:03:27,519 main.py:2950] Polling cycle complete
> > INFO     2011-06-15 14:03:27,539 dev_appserver.py:4151] "POST /work/
> > poll_bootstrap HTTP/1.1" 200 -
> > INFO     2011-06-15 14:03:27,582 dev_appserver_index.py:254] Updating /
> > home/fingolion/pubsubhubbub-read-only/hub/index.yaml
>
> > Thanks again :-)
>
> > Mikel.
>
> > On Jun 15, 12:05 am, Steve Hakusa <[email protected]> wrote:
> > > Hi Mikel,
>
> > > Polling works on a cron, which doesn't run with the dev_appserver.  You
> > can
> > > manually hithttp://localhost:8080/work/poll_bootstrapfroma web browser
> > to
> > > trigger a polling run, or you can set it up via curl from your crontab.
>
> > > Hope that helps.
> > > Steve
>
> > > On Tue, Jun 14, 2011 at 12:19 PM, Mikel <[email protected]> wrote:
> > > > Hey all,
>
> > > > Im a little bit newbie with PuSH so forgive me if im asking something
> > > > stupid. The issue is that I'm trying out my own application that uses
> > > > PuSH but due to some firewall issues I have to use the hub locally in
> > > > my computer. So far everything goes smoothly and subscriptions are
> > > > verified perfectly (Using Java application as subscriber), but
> > > > whenever I subscribe to a new source, it just does no polling at all!
>
> > > > I've checked several times this post here:
>
> > > >http://groups.google.com/group/pubsubhubbub/browse_thread/thread/1954.
> > ..
>
> > > > But still no success. This is the log I get in the Hub's console:
>
> > > > pubsubhubbub on port 8080:http://localhost:8080
> > > > /home/fingolion/inplementazioa/google_appengine/google/appengine/tools/
> > > > dev_appserver.py:1798: DeprecationWarning:
> > > > google.appengine.api.labs.taskqueue is deprecated, please use
> > > > google.appengine.api.taskqueue
> > > >  description)
> > > > /home/fingolion/inplementazioa/google_appengine/google/appengine/tools/
> > > > dev_appserver.py:1798: DeprecationWarning: the md5 module is
> > > > deprecated; use hashlib instead
> > > >  description)
> > > > DEBUG    2011-06-14 16:13:12,999 main.py:1941] Attempting to confirm
> > > > subscribe for topic = u'http://api.flickr.com/services/feeds/
> > > > photos_public.gne?id=58624204@N07', callback = u'
> >http://localhost:8081/
> > > > tabasco/sioc-broker/hub', verify_token = u'token', secret = None,
> > > > lease_seconds = 432000
> > > > DEBUG    2011-06-14 16:13:13,008 urlfetch_stub.py:200] Making HTTP
> > > > request: host = localhost:8081, url =
>
> > > >http://localhost:8081/tabasco/sioc-broker/hub?hub.verify_token=token&;.
> > ..
> > > > ,
> > > > payload = None, headers = {'Host': 'localhost:8081', 'Accept-
> > > > Encoding': 'gzip', 'User-Agent': 'AppEngine-Google; (+http://
> > > > code.google.com/appengine)'}
> > > > INFO     2011-06-14 16:13:13,099 main.py:1984] Subscription action
> > > > verified, callback =http://localhost:8081/tabasco/sioc-broker/hub,
> > > > topic =
> > > >http://api.flickr.com/services/feeds/photos_public.gne?id=58624204@N07:
> > > > subscribe
> > > > INFO     2011-06-14 16:13:13,141 dev_appserver.py:3317] "POST /
> > > > subscribe HTTP/1.1" 204 -
> > > > INFO     2011-06-14 16:13:13,260 dev_appserver_index.py:212] Updating /
> > > > home/fingolion/pubsubhubbub-read-only/hub/index.yaml
> > > > INFO     2011-06-14 16:13:13,434 dev_appserver.py:3317] "POST /work/
> > > > record_feeds HTTP/1.1" 200 -
>
> > > > I will be very grateful if you can help me with this!

Reply via email to