← 回首頁
Cloudflare Workers
Cannot convert argument to a ByteString
TypeError: Cannot convert argument to a ByteString because the character at index 7 has a value of 20320 which is greater than 255.
🔍 為什麼會發生
HTTP 请求头里出现了非 ASCII 字符(比如中文字符)。最常见的情况是 .env 里的 API Token 还是占位符(如「你的API_TOKEN」),没换成真实的。
🛠️ 怎麼修
- 检查 .env 里的 CLOUDFLARE_API_TOKEN 是不是真的 Token
- 占位符如
你的API_TOKEN、xxxxx 会报这个错
- Token 应该类似
cfut_xxx 或 ghp_xxx 这种纯英文数字
- 加个校验:
if [ "$TOKEN" = "你的API_TOKEN" ]; then exit 1; fi
看更多加密貨幣工具
本站為技術速查,內容僅供參考。錯誤訊息以官方文件為準。