I get this excepiton when requesting certain files. Any way to debug?
com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 OK
{
"code" : 500,
"errors" : [ {
"domain" : "global",
"message" : "Internal Error",
"reason" : "internalError"
} ],
"message" : "Internal Error"
}
at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:159)
at com.google.api.client.googleapis.json.GoogleJsonResponseException.execute(GoogleJsonResponseException.java:203)
at com.google.api.client.googleapis.services.GoogleClient.executeUnparsed(GoogleClient.java:237)
at com.google.api.client.http.json.JsonHttpRequest.executeUnparsed(JsonHttpRequest.java:207)
at com.google.api.services.drive.Drive$Files$Insert.executeUnparsed(Drive.java:307)
at com.google.api.services.drive.Drive$Files$Insert.execute(Drive.java:331)
This error seems to pop up when I try to create a folder with an empty name.
A more meaningful error msg would be great.
Using version 0.5.1-dev of grive on Ubuntu 16.04 I came across the error:
request failed due to temporary error: 500 (body: {
"error": {
"errors": [
{
"domain": "global",
"reason": "internalError",
"message": "Internal Error"
}
],
"code": 500,
"message": "Internal Error"
}
}
). retrying in 5 seconds
It would retry and repeat the error.
The solution was to create a dummy file within the directory.
I have opened an issue for this.
Related
I encountered this Error and i don't known how to resolve this :
2023-02-07 18:11:17.699 ERROR c.k.katalon.core.main.TestCaseExecutor - ❌ Test Cases/Draft/DownloadFileInDrive FAILED.
Reason:
com.google.api.client.http.HttpResponseException: 403 Forbidden
GET https://www.googleapis.com/drive/v3/files/1lXeG5nWa9uPyPqSPUQKYrVch7JiQvcjBtOMbohieick?alt=media
{
"error": {
"code": 403,
"message": "Request had insufficient authentication scopes.",
"errors": [
{
"message": "Insufficient Permission",
"domain": "global",
"reason": "insufficientPermissions"
}
],
"status": "PERMISSION_DENIED",
"details": [
{
"#type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT",
"domain": "googleapis.com",
"metadata": {
"service": "drive.googleapis.com",
"method": "google.apps.drive.v3.DriveFiles.Get"
}
The error is displayed because of this line and does not go further :
FileList result = service.files().list().setPageSize(10).setFields("nextPageToken, files(id, name)").execute();
Could you tell me what's wrong?
Can someone tell me if a forum for Google drive API exists?
Thanks you
Downloading a file via a GET request sometimes results in this error:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "cannotDownloadFile",
"message": "This file cannot be downloaded by the user."
}
],
"code": 403,
"message": "This file cannot be downloaded by the user."
}
}
I'm still identifying what type/s of files results in this error. I've tried looking for the cause in the Drive API v3 documentation, but it seems that it isn't mentioned anywhere.
Anyone know what causes this? Thanks!
From what I've observed so far, this happens for files where the option "Disable options to download, print, and copy for commenters and viewers." is set.
https://support.google.com/docs/answer/2494893?co=GENIE.Platform%3DDesktop&hl=en
I am trying to hit /userlicenses api of chromeWebstore api. But i get the following error:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "backendError",
"message": "Backend Error"
}
],
"code": 500,
"message": "Backend Error"
}
}
This is only happening for all the new extensions that are created.
Tried to contact google support but they are no help.
Please can anyone guide as to what can be done in this case?
I wrote a script that pulls information about creatives from DCM function described here: https://developers.google.com/doubleclick-advertisers/v3.2/creatives/list
It worked fine for last couple month, however, starting a couple days ago, I began getting the following error:
PHP Fatal error: Uncaught Google_Service_Exception: {
"error": {
"errors": [
{
"domain": "global",
"reason": "backendError",
"message": "Backend Error"
}
],
"code": 500,
"message": "Backend Error"
}
}
in /var/www/html/dcm/vendor/google/apiclient/src/Google/Http/REST.php:118
Stack trace:
#0 /var/www/html/dcm/vendor/google/apiclient/src/Google/Http/REST.php(94): Google_Http_REST::decodeHttpResponse(Object(GuzzleHttp\Psr7\Response), Object(GuzzleHttp\Psr7\Request), 'Google_Service_...')
#1 /var/www/html/dcm/vendor/google/apiclient/src/Google/Task/Runner.php(181): Google_Http_REST::doExecute(Object(GuzzleHttp\Client), Object(GuzzleHttp\Psr7\Request), 'Google_Service_...')
#2 /var/www/html/dcm/vendor/google/apiclient/src/Google/Http/REST.php(58): Google_Task_Runner->run()
#3 /var/www/html/dcm/vendor/google/apiclient/src/Google/Client.php(779): Google_Http_REST::execute(Object(GuzzleHttp\Client), Object(GuzzleHttp\Psr7\Request), 'Google_Service_...', Array)
#4 /var/www/html/dcm/ in /var/www/html/dcm/vendor/google/apiclient/src/Google/Http/REST.php on line 118
I have tried using "Try this API" feature to see if anything has changed, and after logging in with Oauth2 I am receiving the following error while trying to list creatives:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "backendError",
"message": "Backend Error"
}
],
"code": 500,
"message": "Backend Error"
}
}
Is there something that I need to change on my end, or is this a global issue?
When accessing functions on google appScript from java code using a service account i get an error of:
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"
}
The same this happens from app-engine with default credentials