Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google apps script 来自服务的Google应用程序脚本调用函数_Google Apps Script_Oauth - Fatal编程技术网

Google apps script 来自服务的Google应用程序脚本调用函数

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

使用服务帐户从java代码访问google appScript上的函数时,我得到一个错误:

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();