gpt4 book ai didi

youtube - googleapiclient.errors.HttpError:
转载 作者:行者123 更新时间:2023-12-03 05:35:13 25 4
gpt4 key购买 nike

我正在尝试从Youtube数据API获取视频数据,但是在经过一定数量的请求调用(大约900次)后,我遇到了(500)后端错误,我也试图等待15分钟的间隔,持续4到5次,但仍然抛出同样的错误

错误:

b'{\n "error": {\n "errors": [\n {\n "domain": "global",\n "reason": "backendError",\n "message": "Backend Error"\n }\n ],\n "code": 500,\n "message": "Backend Error"\n }\n}\n'

googleapiclient.errors.HttpError: <HttpError 500 when requesting https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=50&forContentOwner=true&alt=json&type=video&pageToken=xxxxxreturned "Backend Error">



这是如果python中的代码迭代发出请求的部分:
search_data = search_list_mine(youtube_data, part='snippet', maxResults=50,
forContentOwner=True,
onBehalfOfContentOwner='xxxxxxxx', type='video',
pageToken="xxxxxxxx")

最佳答案

如果您不是YouTube合作伙伴,请删除这些codeforContentOwner = True,
onBehalfOfContentOwner ='xxxxxxxx',

关于youtube - googleapiclient.errors.HttpError:<HttpError 500,当请求https://www.googleapis.com/youtube/v3/search吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51071001/

25 4 0

Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com