NewFuture / DDNS

:triangular_flag_on_post: 自动更新域名解析到本机IP(支持dnspod,阿里DNS,CloudFlare,华为云,DNSCOM...)
https://ddns.newfuture.cc/
MIT License
4.37k stars 666 forks source link

报错Header错误 #439

Closed WilliamLi0623 closed 5 months ago

WilliamLi0623 commented 5 months ago

描述问题 (Describe the bug)

进行DDNS更新时提示Header错误,CloudFlare

版本信息 (version info)

复现步骤 (To Reproduce)

配置文件 (config file)

{
  "$schema": "https://ddns.newfuture.cc/schema/v2.8.json",
  "debug": false,
  "dns": "cloudflare",
  "id": "someone!@example.com",
  "index4": "public",
  "index6": "",
  "ipv4": [
    "qaq.example.com"
  ],
  "ipv6": [
  ],
  "proxy": null,
  "token": "CloudFlare API 令牌,给了修改DNS的权限",
  "ttl": 1
}

调试输出 (debug output)

{"success":false,"errors":[{"code":6003,"message":"Invalid request headers","error_chain":[{"code":6103,"message":"Invalid format for X-Auth-Key header"}]}],"messages":[],"result":null}
ERROR:root:{"success":false,"errors":[{"code":6003,"message":"Invalid request headers","error_chain":[{"code":6103,"message":"Invalid format for X-Auth-Key header"}]}],"messages":[],"result":null}

补充说明 (Additional context)

NewFuture commented 5 months ago

token的话把ID留空

WilliamLi0623 commented 5 months ago

token的话把ID留空

感谢,已经解决

WilliamLi0623 commented 5 months ago

解决