Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudflare 请求失败 “Invalid format for Authorization header” #916

Closed
dukehug opened this issue Nov 18, 2023 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@dukehug
Copy link

dukehug commented Nov 18, 2023

问题描述

###操作系统版本
Windows 10 LTSC

###DNS服务商
Cloudflare

记录地址类型

IPv6

错误日志

2023/11/18 16:55:29 请求接口 https://api.cloudflare.com/client/v4/zones?name=xxxxxx.com&status=active&per_page=50 失败! 返回内容: {"success":false,"errors":[{"code":6003,"message":"Invalid request headers","error_chain":[{"code":6111,"message":"Invalid format for Authorization header"}]}],"messages":[],"result":null} ,返回状态码: 400

参考资料

根据日志的回馈,Google搜索得知是缺少了Email 地址的验证

相关文档见此链接: https://developers.cloudflare.com/api/#zone-purge-all-files

希望得到修正。再次感谢开发者的工作

DNS服务商

Cloudflare

是否已搜索同类问题

已搜索,但未能解决

操作系统

Windows

架构

x86_64

版本

v5.6.6

安装方式

服务

额外信息

2023/11/18 16:55:29 请求接口 https://api.cloudflare.com/client/v4/zones?name=xxxxxxx.com&status=active&per_page=50 失败! 返回内容: {"success":false,"errors":[{"code":6003,"message":"Invalid request headers","error_chain":[{"code":6111,"message":"Invalid format for Authorization header"}]}],"messages":[],"result":null} ,返回状态码: 400

@dukehug dukehug added the bug Something isn't working label Nov 18, 2023
@jeessy2
Copy link
Owner

jeessy2 commented Nov 18, 2023

用的Bearer
检查一下你Token

@dukehug
Copy link
Author

dukehug commented Nov 18, 2023

用的Bearer 检查一下你Token

感谢。确实是Token的问题。

@dukehug dukehug closed this as completed Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants