You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Python调用Cloudflare KV bulk_update接口触发AttributeError错误的解决方法求助

Python调用Cloudflare KV bulk_update接口触发AttributeError错误的解决方法求助

我正在用Python批量更新Cloudflare KV,参照官方示例代码编写后,运行时触发了如下错误:

response = client.kv.namespaces.bulk_update(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NamespacesResource' object has no attribute 'bulk_update'

我的环境版本信息如下:

python 3.12.6

cloudflare == 3.1.1
pydantic == 2.9.*
httpx == 0.27.*

另外需要说明的是,我的API令牌是正常可用的——用它操作D1数据库完全没问题,所以可以排除令牌权限或有效性的问题。

有没有大佬知道该怎么解决这个问题呀?

备注:内容来源于stack exchange,提问作者Abdulaziz

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.14 16:49:33