Subscribe to Google Pubsubhubbub Hub

Hello everyone,

I really don’t know how to make it work. I am new to all of this.

I went to this form : Google Pubsubhubbub Hub - Subscription debug
but could never get it verified…
Any idea ?

Edit : Here’s the doc : WebSub

Hi @saikidoka62

First off, welcome to the Pipedream community. Happy to have you!

Sure we can certainly try to our best to help.

Correct me if I’m wrong, but it sounds like you’re trying to verify a Google PubSub webhook in a Pipedream workflow - is that correct?

Hello, yes, it’s absolutely correct. Usually what’s wrong is around the “Challenge mismatch”.

Great, thanks for clarifying.

Could you share the code you’re running in your Pipedream workflow that’s producing this error?

I have tried many thing before “giving up”

This is what I ended with:

The trigger is set to

async (event, steps) => {
if(steps.trigger.event.query[“hub.mode”] == “subscribe”){
$respond({
status: 204,
body: steps.trigger.event.query[“hub.challenge”],
})
}
}

However this time the problem is “Bad response code 400”

Thanks @saikidoka62 that helps us understand one side of the problem. Can you also share the inputs you specified in the PubSub diagnostic tool?

Forgive me, I’m not a Google PubSub expert so I’m not totally following your objective of this workflow and how you’re trying to integrate with this diagnostic tool.

Any help is welcome I am not really a developper by formation and recently heard about Webhooks.

My goal is to “listen” to determined Youtube channels in order to automatically import the new video that are published in a Notion database. (I have already managed to import a video in a said database when its ID is written in a new line of a Google Sheets but I would like not to have to do so (of course, I want to directly connect the Webhook and the notion database.

So right now what I want to do is validate the Webhook then I will try to figure out the rest.

Edit sorry, my bad, here are the inputs:
Callback URL: https://eobqbdt43rbg6s8.m.pipedream.net
Topic URL: YouTube video feed

Hi @saikidoka62 thanks for the context, I didn’t realize the end goal was to interact with new YouTube videos in a feed.

We already offer a pre-built YouTube upload trigger. That would bypass this need to set up a PubSub notification system.

Have you tried that route?

Yes but unless I am missing something, it is polling on a regular basis and not using Webhooks. So if I want to have the video imported in my Notion database as soon as it is published (or so), I would need it to check every 5 minutes or so and it is quite inefficient compared to the Webhook solution…

You’re correct @saikidoka62 our built in YouTube API source uses polling under the hood.

I didn’t realize there was a PubSub notification for YouTube video uploads, are you following a guide or tutorial? If so, can you share it?

We’d love to offer this as another pre-built source so that instant triggers are possible without coding or special set up.

1 Like

Just following the Youtube Data API documentation but it seems to need to be updated a bit: Subscribe to Push Notifications  |  YouTube Data API  |  Google Developers

Thank you!

I had no idea this was possible with YouTube!

I’ve made a feature request here for our developers to build a source for:

If you’d like to add comments please feel free. Leaving a comment or reacting to the issue will also subscribe you to future updates for when we work on this and release it.

1 Like

Thanks a lot for all of this, I am not really sure I am really qualified though, as I said developing is not my formation. It would be great if it was released though :smiley: