Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedI 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 or0
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.