Thx Julien, I am trying this now.



On Fri, Nov 2, 2012 at 10:47 PM, Julien Genestoux <
[email protected]> wrote:

> Rajat,
>
> Rails does too many assumptions and tries to parse the content into the
> content from a form posted. This is not right.
> To access the body, you have to do something like this:
>
> request.body.rewind
> body = request.body.read
>
>
> I hope this helps!
>
> Julien
> --
> http://superfeedr.com
>
> On Thu, Nov 1, 2012 at 6:09 AM, Rajat Garg <[email protected]> wrote:
>
>> Folks,
>>
>> I have just started using Pubsubhubbub :-) (Great name and intro video by
>> the way).
>>
>> It may be a very stupid question but I am stuck here -
>>
>> 1) I have subscribed for a feed update - appspot hub shows it's done
>> properly but it is saying 'Payload, possibly truncated'
>>
>> https://pubsubhubbub.appspot.com/subscription-details?hub.callback=http%3A%2F%2Fec2-184-169-194-223.us-west-1.compute.amazonaws.com%3A8080%2Ffeeds%2Ffeed&hub.topic=http%3A%2F%2Ffeeds.hindustantimes.com%2FHT-HomePage-TopStories&hub.secret=
>>
>> 2) On server end (written in Ruby), I am checking for hub.challenge and
>> responding with challenge which seems to be working ok. If challenge is not
>> there, I look for data and if it's not there, I send a 404.
>>
>> Issue is that, I have not seen any data for 10-15 feeds that I have
>> subscribed. When I inspect params passed through, there is nothing there -
>>
>> Processing Feeds::FeedController#index (for 74.125.183.25 at 2012-10-31
>> 20:41:42) [POST]
>> /feeds/feed
>> *{"action"=>"index", "controller"=>"feeds/feed"}*
>> Rendering feeds/feed/index (404)
>> Filter chain halted as [:index] rendered_or_redirected.
>> Completed in 1ms (View: 0, DB: 0) | 404 Not Found
>>
>> What am I missing, is there another handshake that needs to be done
>> before I get content update or, is there something else. Pls suggest.
>>
>> Thx in advance
>> Rajat
>>
>>
>


-- 
Rajat Garg
Founder
SocialAppsHQ <http://www.socialappshq.com>

Ph: 9958083052 (India)
206-330-2076 (USA)

Reply via email to