I have been facing this issue on YouTube Data API where it throws 500 error after some requests under the same channel.
What I am trying to do is create 10-15 videos for a single channel at once. For multiple channel that works fine. But for a single channel it fails to create some of those videos or partially fails (i,e, playlist isn't set properly which is done via a different request). I think there is something going on for requests under same channel. Because the same thing works if these 10-15 videos are created for different channels. I did find somewhere that, there is an anti-spam algorithm that YouTube uses to stop video spamming. But that should have returned me a 4xx error not a 500 error, which is confusing. 500 error is Internal Server Error
.
To reproduce this, we can either use threads or job scheduling mechanism for single threaded language like javascript. I am using bull.js in nodejs to create this 10-15 jobs in the queue which are going to be processed at once by the consumer to create the videos.