Why is the Youtube Data API's 'New Videos in Playlist' Trigger Detecting New Videos Erratically?

This topic was automatically generated from Slack. You can find the original thread here.

I’m having some trouble figuring out a problem with the Youtube (Data API) New Videos in Playlist trigger. It seems to detect new videos with a randomness I’m having trouble tracking. Many times it does not detect new videos, other times it finds all new videos, and other times it’ll grab 1 or 2 out of a handful of videos

I do have Maximum Results set to 20, so that shouldn’t impact anything

Any thoughts appreciated. Thanks!

Hi , I’ll try to reproduce this and get back to you soon

Hi , I tried to reproduce your issue, but it seems all fine to me. I can receive all videos added to playlist just fine.

Would you mind clicking into the source log and share a screenshot (2nd image below)?

Hi thanks, for checking ! Yes, here they are.

First image is the two videos i just added to a playlist, one after the other.

Second is the Event.

Third is the Logs.

Hi , could you unselect the event (by tapping into the event you have selected again), and tap the Run Now button?

The source will run every 15 minutes by default, so you might need to manually trigger if you want to see the event immediately

just tried, and nothing happened it seems. Then I tried adding another video to that playlist, tried run now, and nothing happened once again.

The fact that I have four triggers, one for a different playlist couldn’t be causing the problem could it? I wouldn’t think so, especially since I’m manually triggering the trigger for certain playlists.

I’ve also noticed that sometimes it doesn’t load the most recent videos in the trigger SELECT EVENT section when I am testing. Not always, but often enough that it doesn’t seem like an occasional delay but more that something isn’t right.

, I’m thinking what might be the cause. From what I see, the logic in the source works fine, so it might be because of other factors.

May I ask if you have used all your daily credit? That might be a reason that event might not be emitted

No, this is what I’m at currently

image.png

I see. Let me try to reproduce you issue with 4 triggers. I’ll get back to you

Before that. Could you share the screenshot of your source configuration (as below)?

Thanks

I created 3 youtube playlists matching with 3 Pipedream sources. Then I added 1-2 videos to each source and see that the event is emitted correctly when tapping “Run Now” button as images below

I couldn’t reproduce your issue. I would recommend recreating your source and trying to add videos to your playlist again

Thanks for checking . I appreciate it. Still seem to be having trouble after recreating all triggers and even the playlists. Added 8 videos to a playlist, trigger only detected 6.

another wrinkle to my trouble with YouTube is that at the end of the workflow, I have a step to remove the video from my playlist. It works half the time (seemingly all the time if just one video is handled), and the other half I get a Gaxios._request error

Then tried adding 3 new videos to that same playlist, didn’t detect anything.