I would like to use Feeds’ PubSubHubbub support with Superfeedr. When subscribing to feeds with Superfeedr the user is asked to provide a SUBSCRIPTION WEBHOOK URL (HUB.CALLBACK)? I've attempted to simply use my http://mydomain.com but receiving a 422 error as seen in drupal's recent logs.

Error issuing "subscribe" request to https://myusername:mytoken@push.superfeedr.com (422).

What should the callback url be? Any help/advice would be greatly appreciated.

Comments

jrix created an issue. See original summary.

MegaChriz’s picture

Status: Active » Fixed

I haven't used Feeds' PubSubHubbub feature yet, but #2510260: Fix pubsubhubbub. suggests that it is broken. Does the patch from that issue help?

By looking at the code, the callback url should have the following pattern: http://www.example.com/feeds/importer/%importer_id/%feed_nid where %importer_id is the id of the importer being used and %feed_nid the id of the feed node if the importer is attached to a content type or 0 if the importer uses a standalone form. Furthermore, the code implies that this callback url should be send automatically by Feeds when the "Use PubSubHubbub" option is enabled on the settings of the HTTP fetcher of the importer.

Assuming this answers your question, I set the status to "Fixed". If it doesn't help, feel free to reopen this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.