gpt4 book ai didi

python - 为什么截止日期不适用于 GAE urlfetch?

转载 作者:太空宇宙 更新时间:2023-11-03 19:27:35 32 4
gpt4 key购买 nike

如果我使用以下代码:

result = urlfetch.fetch(url=url_get_devices, 
payload='',
method=urlfetch.POST,
headers=headers,
deadline=10
)

然后我收到错误:

File "D:\Work_GAE\test.py", line 27, in get deadline=10 TypeError: fetch() got an unexpected keyword argument 'deadline'

但是如果我删除deadline参数,那么它就可以正常工作。这里出了什么问题?

最佳答案

听起来您正在使用非常版本的 App Engine SDK。您应该更新到最新版本。

关于python - 为什么截止日期不适用于 GAE urlfetch?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7506253/

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