尝试使用 http 新建 github 仓库文件

local githubDatas = {
    ["message"] = playerName .. "(" .. playerID .. ")",
    ["content"] = base64(Log.Value),
    --["branch"] = "logs"
}
local hubResult = game:GetService("HttpService"):RequestAsync({Url = "https://github.com/api/v3/repos/eattato/LogsTotal/contents" .. playerName .. "(" .. playerID .. ").txt", Method = "PUT", Headers = {["authorization"] = "token TOKEN WAS HERE",["Content-Type"] = "application/json"}, Body = game:GetService("HttpService"):JSONEncode(githubDatas)})

但它输出错误 HttpError: curl:18,传输了部分文件

我该如何修复这个错误?

点赞