Google apps script 来自服务的Google应用程序脚本调用函数
使用服务帐户从java代码访问google appScript上的函数时,我得到一个错误:Google apps script 来自服务的Google应用程序脚本调用函数,google-apps-script,oauth,Google Apps Script,Oauth,使用服务帐户从java代码访问google appScript上的函数时,我得到一个错误: Exception in thread "main" com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 Internal Server Error { "code" : 500, "errors" : [ { "domain" : "global", "message" : "Interna
Exception in thread "main" com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 Internal Server Error
{
"code" : 500,
"errors" : [ {
"domain" : "global",
"message" : "Internal error encountered.",
"reason" : "backendError"
} ],
"message" : "Internal error encountered.",
"status" : "INTERNAL"
}
使用默认凭据的应用程序引擎也会发生同样的情况是否使用执行API?是:ExecutionRequest request=new ExecutionRequest().setDevMode(false).setFunction(“getSQLLateBucketCollectionStats”);操作op=script.scripts().run(AppScriptFactory.TEST_键,请求).execute();您正在使用执行API吗?是:ExecutionRequest request=new ExecutionRequest().setDevMode(false).setFunction(“getSQLLateBucketCollectionStats”);操作op=script.scripts().run(AppScriptFactory.TEST_键,请求).execute();