Verification details...

3 views
Skip to first unread message

Zigor Salvador

unread,
Nov 2, 2009, 10:17:33 AM11/2/09
to Pubsubhubbub
Hi,

I'm trying interact with the reference Hub implementation running on
localhost.

Publisher notifications seem to get through, subscriber notifications
seem to get through too, but no asynchronous verification is initiated
by the Hub. I must be doing something wrong, hopefully you can shed
some light on the matter...

Initial Hub output:

INFO 2009-11-02 15:10:33,152 dev_appserver_main.py:478] Running
application pubsubhubbub on port 8080: http://localhost:8080

The subscription request is executed:

DEBUG 2009-11-02 15:10:45,584 main.py:1721] Queued subscribe
request for callback = http://10.10.0.63:8082, topic = http://10.10.0.63:8081/atom.xml,
verify_token = "potatoe", lease_seconds= 2592000
INFO 2009-11-02 15:10:45,593 dev_appserver.py:3034] "POST / HTTP/
1.1" 202 -
INFO 2009-11-02 15:10:45,634 dev_appserver_index.py:212] Updating /
Users/Zigor/Downloads/pubsubhubbub/hub/index.yaml

New content notification issued by the publisher:

INFO 2009-11-02 15:11:21,007 dev_appserver.py:3034] "POST / HTTP/
1.1" 204 -

No verification request is received by the subscriber whatsoever.

Thanks,

Zigor.

Brett Slatkin

unread,
Nov 2, 2009, 3:54:55 PM11/2/09
to pubsub...@googlegroups.com
Hey Zigor,

Double-check the developers guide:
http://code.google.com/p/pubsubhubbub/wiki/DeveloperGettingStartedGuide

You need to make sure to run the background tasks that are enqueued as
a result of your subscription requests (specifically, the record_feeds
task). They're on the local admin console at
http://localhost:8080/_ah/admin

Hope that helps,

-Brett

Zigor Salvador

unread,
Nov 3, 2009, 3:02:16 AM11/3/09
to pubsub...@googlegroups.com
Hi Brett,

Thanks for the advice!

However, I see no "record_feeds" task in the Task Queues.

I do see a pending "subscriptions" task, but clicking "run" for that
task produces the following console output:

WARNING 2009-11-03 07:58:16,618 main.py:1630] Could not confirm
subscription; encountered status 200 with content:
zztPHVoTn3ig0WwbOTkawwoUfeY_XzDCVjHNNpoiGVfu_ahx2aJuoNw_CIsFMKjX19
-0YeA7xnN5jETAJchbJJOR4VofkVxJqY74TK3a6s727k35QJYzm8g_5mzGFXs-

My endpoint is trying to return the challenge, but I guess this string
is not what the hub expects.

Zigor.

Brett Slatkin

unread,
Nov 3, 2009, 12:17:23 PM11/3/09
to pubsub...@googlegroups.com
On Tue, Nov 3, 2009 at 12:02 AM, Zigor Salvador <zigors...@gmail.com> wrote:
>
> Hi Brett,
>
> Thanks for the advice!
>
> However, I see no "record_feeds" task in the Task Queues.
>
> I do see a pending "subscriptions" task, but clicking "run" for that task
> produces the following console output:
>
> WARNING  2009-11-03 07:58:16,618 main.py:1630] Could not confirm
> subscription; encountered status 200 with content:
> zztPHVoTn3ig0WwbOTkawwoUfeY_XzDCVjHNNpoiGVfu_ahx2aJuoNw_CIsFMKjX19-0YeA7xnN5jETAJchbJJOR4VofkVxJqY74TK3a6s727k35QJYzm8g_5mzGFXs-
>
> My endpoint is trying to return the challenge, but I guess this string is
> not what the hub expects.

Indeed, for some reason the content you're returning does not match
the challenge string. Do you possibly have extra line endings or
wrappers in your subscriber code that's printing the challenge?

Reply all
Reply to author
Forward
0 new messages