C# 使用服务帐户和Google Drive API返回的\u授权无效

C# 使用服务帐户和Google Drive API返回的\u授权无效,c#,asp.net,google-drive-api,C#,Asp.net,Google Drive Api,我已经花了两天时间使用服务帐户来摆弄各种驱动器API教程 我最近使用的教程是: 我在尝试上载文件时不断遇到此错误: ProtocolException was unhandled Error occurred while sending a direct message or getting the response. 我安装并确定当POST/o/oauth2/token返回时: { "error:"invalid_grant" } 我已经检查了我的申请范围 我做错了什么?我的服务器

我已经花了两天时间使用服务帐户来摆弄各种驱动器API教程

我最近使用的教程是:

我在尝试上载文件时不断遇到此错误:

ProtocolException was unhandled
Error occurred while sending a direct message or getting the response.
我安装并确定当
POST/o/oauth2/token
返回时:

{
    "error:"invalid_grant"
}
我已经检查了我的申请范围


我做错了什么?

我的服务器上的时间快了5分钟

当我更正服务器上的时间时,一切都正常了

我相信这会导致某种身份验证问题,因为Google服务器时间不接受来自我服务器的请求的时间戳或类似的东西


(希望这能省去一些麻烦)

我的服务器只关闭了大约一分钟,它抛出了这些错误。我安装了NTP服务,现在一切都很好。:)