Google drive ошибка 404

Learn how to resolve problems with Google Drive.

403 or 404 Errors

Users of Google Drive can sometimes see Error 403 (permission denied) or Error 404 (not found). There are a few common reasons for this:

  1. You may have inadvertently deleted the Google worksheet. You can recover the deleted Google worksheet as described in Recover a deleted Google file or worksheet. 
  2. You are not the owner of the document but this is a shared document owned by a different Google account. Check your document sharing permissions on Google.
  3. You have multiple Google accounts (let’s call them Acct1 and Acct2): your spreadsheet is owned by Acct1 but you sign into AppSheet using Acct2 to access the spreadsheet. Either use the same account or share the document across accounts. 
  4. You had access to the file at one point, but the access has been removed.
  5. This can sometimes occur if you have a corporate Google Docs account that has an admin policy that prohibits all users from enabling third-party software like AppSheet (so you may need to talk to your account admin).

See also Share files from Google Drive.

Google AppScript onEdit Triggers

If you use one of the AppSheet add-ons to integrate with Google Forms, Sheets, or Docs, see Use data from Google Sheets to learn more about specific limitations on those integrations. 

In particular, if you utilize Google AppScript onEdit triggers on your Google Sheet, or a third-party add on that utilizes these triggers, the triggers are not fired when AppSheet makes a change to the data in the spreadsheet. This is an unfortunate limitation imposed by Google on all third-party solutions like AppSheet. The best workaround is to utilize a timed AppScript trigger (or an onChange trigger) rather than an onEdit trigger.

Google Sheet filters

Also, do not use filters on your Google Sheets — it can make the filtered rows invisible to updates. Instead, use filter views (this is a Google Sheets feature that lets each user create and use their own filters without affecting other users of the sheet). See also: Use data from Google Sheets

Public Google Sheets

Make certain that your spreadsheet is not marked as Public. The Google spreadsheets API doesn’t enable updates against public spreadsheets.

Google worksheet names exceeding 31 characters in length

Make certain that your Google worksheet names do not exceed 31 characters in length. All characters in the name are counted including blanks and special characters.

Error: Unable to read spreadsheet: hexadecimal value 0xNN is an invalid character

 When AppSheet attempts to read your Google worksheet you may see an error like the following:

Unable to read the spreadsheet for '<worksheet name>' due to spreadsheet reader error: '', hexadecimal value 0x0C, is an invalid character. Line 9999, position 999

The actual hexadecimal value will vary and as will the line and position values. The line and position are not helpful for the reason described below.

AppSheet reads the Google Sheet by asking Google to export the worksheet as an Excel .xlsx document. Google converts the Google worksheet into an Excel .xlsx document file and returns this .xlsx file to AppSheet. AppSheet reads the .xlsx file and extracts all of the worksheet cell values, formulas, formatting, and other information from the Excel .xlsx document.

An invalid character error occurs when Google fails to export the Google worksheet as a valid Excel .xlsx document. Instead, the exported Excel .xlsx document contains invalid data that Excel cannot read. The line and position values in the error message are not useful because they refer to a location in the exported Excel .xlsx document. There is no easy way to use these values to locate the problem in your worksheet.

You may be able to locate the problem by doing the following:

  1. Open your workbook in Google Sheets.
  2. From the Google Sheets File menu select Download as… and then select Microsoft Excel (.xlsx). By doing this you are exporting the Google workbook to Excel in the same way that Google Sheets is exporting it to AppSheet.
  3. When the export finishes, you will see the exported .xlsx file name at the bottom left of your browser screen. 
  4. Click the ^ character to the right of the .xlsx file name and select Open. This will open the exported file in Excel. Excel is very likely to report an error when reading the exported file. The Excel error message may help you locate the problem.
  5. Return to Google Sheets and modify your workbook to eliminate the problem.
  6. Repeat the steps above until the you have eliminated the problem. 

Here are some things to check:

  • Ensure there are no invalid character values in your worksheet cell values. Invalid character values may be displayed in the form . You can use the Google Sheets search function to locate the invalid character. Open your worksheet in Google Sheet. From the Edit menu select Find and replace … Copy into the Find box to search for the invalid character.
  • One customer reported their problem was caused by an import range function in a cell of their Google worksheet. Replacing the import range with the actual data values eliminated the problem.
  • If you discover other causes for this problem, report them to us. We will add your information to this list to help other users.

Was this helpful?

How can we improve it?

Google Drive Not Found Error 404 Fix. If the page is no longer available pages that no longer exist should return a 404 (not found) or 410 (gone) if you’re having trouble viewing a file in google drive, here’s how you can try to fix the issue. Otherwise, search results may provide the information you need to fix a problem. Check if anyone having access to that file in sharing removed it. Google drive hosts html websites for free. An edited file won’t sync. The requested url was not found on this server. A shared file fails to appear for collaborators. Check tour ‘root’ again for all existing files! Here are a few ways to fix soft 404 errors: See 404 error comes when the link is broken or the file is not at that location. No se puede descargar de google drive solución rápida error 403. Wait and try opening your files again later wait a few. Most probably, the file is removed in such cases that’s why it shows 404 error. Have keyweb open a specific key file in google drive by default when the url is accessed and the password is entered. I have a free google drive account.

Google Drive Not Found Error 404 Fix Indeed recently is being hunted by users around us, maybe one of you. Individuals are now accustomed to using the internet in gadgets to see video and image data for inspiration, and according to the title of the post I will talk about about Google Drive Not Found Error 404 Fix.

  • How Do You Fix Error Creating Copy In Google Drive : The 404 Error Means That The Requested Page.
  • 13 Principles To Follow If I Had To Start A Blog From … : Here’s What You Can Do To Fix It.
  • Access The Google Drive Template Gallery On An Ipad … . At The End Of The Day, The Website’s Visitors Have Not They Can Then Carry Out A 404 Error Fix By Introducing A Domain Redirect, Which Will Automatically Direct Users Any 404 Errors Found By The Google Crawler Are Displayed In The Web Tool And Can Also Be.
  • Kim Six Blogger Support . Check If Anyone Having Access To That File In Sharing Removed It.
  • Fix Crawl Error 404 ‘Page Not Found’ From Google Webmaster … . Otherwise, Search Results May Provide The Information You Need To Fix A Problem.
  • Error Code 404 Roblox Game | Roblox Earn Robux By Watching Ads — Here Are A Few Ways To Fix Soft 404 Errors:
  • How Do You Fix Error Creating Copy In Google Drive : I Don’t Need Server Side Copying, I Have A Fast Connection To Pipe It Though.
  • Top 13 Ways To Fix Google Drive Videos Not Playing Or … — A Shared File Fails To Appear For Collaborators.
  • How To Give Your WordPress Site A Periodic Health Check … : Fill Out The Form Below To Schedule Your.
  • Updated Google Drive Has A Serious Spam Problem, But … . But Google Drive Does Have Its Problems.

Find, Read, And Discover Google Drive Not Found Error 404 Fix, Such Us:

  • Top 13 Ways To Fix Google Drive Videos Not Playing Or … : If You Go To A Specific Page Of A Web Resource Stored In Having Exposed The Dns Server Addresses From Google, Try To Go To The Page, During The Opening Of Which You Encounter A 404 Error.
  • Broken Link Building , How To Fix Error 404 (Not Found) About Not Found Errors Google Discovers Content By Following Links From One Page To Another.
  • How To Improve Your Website With Google Webmaster Tools … , Otherwise, Search Results May Provide The Information You Need To Fix A Problem.
  • Fix Crawl Error 404 ‘Page Not Found’ From Google Webmaster … : Page Not Found Di Google Chrome Diselesaikan Dengan Cara Sederhana.
  • How To Fix Google Drive Not Loading On Chrome | Posts By … : Wait And Try Opening Your Files Again Later Wait A Few.
  • How To Fix Ole32.Dll Is Missing Or Not Found Errors : It Permits Users To Store Files On Their Servers And Integrates Files With Devices.
  • Getting Started With User Experience Design — You Can Fix The Error By Simply Checking Your Url.
  • Local Nuget The V2 Feed At … Returned An Unexpected … — Wait And Try Opening Your Files Again Later Wait A Few.
  • The Do’s And Don’ts For Hosting WordPress Membership Sites — As Both Remotes G1 & G2 Haven’t Been Sync Or Copy To For I Have A Similar 404 Problem With Copying From Two Different Google Accounts.
  • Important Tasks You Need To Do To Conduct A Quick Midyear … . Google Offers Plenty Of Useful Services, Including Cloud Backup Service That Is Known By Google Drive Or Drive.

Google Drive Not Found Error 404 Fix : 404 Pages — What Makes A Great 404 Error Page?

How to Fix a 403 Forbidden Error on Your WordPress Site. Check tour ‘root’ again for all existing files! The requested url was not found on this server. Check if anyone having access to that file in sharing removed it. Google drive hosts html websites for free. Wait and try opening your files again later wait a few. If the page is no longer available pages that no longer exist should return a 404 (not found) or 410 (gone) if you’re having trouble viewing a file in google drive, here’s how you can try to fix the issue. Have keyweb open a specific key file in google drive by default when the url is accessed and the password is entered. I have a free google drive account. See 404 error comes when the link is broken or the file is not at that location. A shared file fails to appear for collaborators. Most probably, the file is removed in such cases that’s why it shows 404 error. An edited file won’t sync. No se puede descargar de google drive solución rápida error 403. Here are a few ways to fix soft 404 errors: Otherwise, search results may provide the information you need to fix a problem.

Fix HTTP Error 403 Google Drive | Google Drive Error 400 ...

Fix HTTP Error 403 Google Drive | Google Drive Error 400 … from contactgmail.us
You can fix the error by simply checking your url. Fill out the form below to schedule your. Often, error 404(not found) can be the result of an accidentally deleted character at the end of the address. A 404 error is rarely a reason to celebrate. Otherwise, search results may provide the information you need to fix a problem. But google drive does have its problems. Probably everyone with internet access has ever seen the ‘404 not found’ caption trying to visit a web page.

So my recommendation would be to check the urls that are listed as 404 crawl errors.

The requested url was not found on this server. Most probably, the file is removed in such cases that’s why it shows 404 error. Error 404 not found variations. Here are a few ways to fix soft 404 errors: One of the most notable issues is when it cannot upload and is not able to. Usually, this error hampers your website optimization. I guess i renamed categories that’s why google can’t find the links. Hello all, i published a partially finished course today to make sure i could share it with my staff using google drive. But google drive does have its problems. The 404 error means that the requested page couldn’t be found because it doesn’t exist. So my recommendation would be to check the urls that are listed as 404 crawl errors. We’ve driven 1.3 billion visitors to startups and fortune 100 brands. The requested url was not found on this server. Every time i try to bring up google.com in internet explorer or mozilla firefox, the error 404 not found nginx shows up. Wait and try opening your files again later wait a few. See 404 error comes when the link is broken or the file is not at that location. The requested url was not found on this server. Because different browsers display error messages differently, you might see a different message for this error. A 404 error is rarely a reason to celebrate. Google drive is a synchronization system that shares files and stores data online. You can fix the error by simply checking your url. I don’t need server side copying, i have a fast connection to pipe it though. Fill out the form below to schedule your. The 5 not found errors in sitemap were the links to categories. The 404 error means that the requested page. Google analytics doesn’t track 404 errors out of the box, but you can use it to find 404 errors if you have a custom 404 page. If any are important, then set up redirects to the appropriate new urls as soon. I followed the instructions to the letter several times, but each time i keep getting an error 404 from google. As both remotes g1 & g2 haven’t been sync or copy to for i have a similar 404 problem with copying from two different google accounts. Here’s what you can do to fix it. Google offers plenty of useful services, including cloud backup service that is known by google drive or drive.

Google Drive Not Found Error 404 Fix — Here’s What You Can Do To Fix It.

Google Drive Not Found Error 404 Fix , Problems Related To Google Chrome Update Error While …

Google Drive Not Found Error 404 Fix : What Is A 403 Forbidden Error And How Do You Fix It?

Google Drive Not Found Error 404 Fix . Google Offers Plenty Of Useful Services, Including Cloud Backup Service That Is Known By Google Drive Or Drive.

Google Drive Not Found Error 404 Fix , Even If You Enter The Wrong Url Address, Google Should Give You The Link To The Correct Address In Your Search Results, So.

Google Drive Not Found Error 404 Fix — Most Often, They Relate To Typos, Incorrect.

Google Drive Not Found Error 404 Fix , Typically, 404 Errors Do Not Affect Google’s Site Rankings, So You Can Ignore Them.

Google Drive Not Found Error 404 Fix , At The End Of The Day, The Website’s Visitors Have Not They Can Then Carry Out A 404 Error Fix By Introducing A Domain Redirect, Which Will Automatically Direct Users Any 404 Errors Found By The Google Crawler Are Displayed In The Web Tool And Can Also Be.

Google Drive Not Found Error 404 Fix , The 404 Error Means That The Requested Page Couldn’t Be Found Because It Doesn’t Exist.

Google Drive Not Found Error 404 Fix . Google Analytics Doesn’t Track 404 Errors Out Of The Box, But You Can Use It To Find 404 Errors If You Have A Custom 404 Page.

Table of Contents

  • 1 Why does Google Drive return a 404 status code?
  • 2 How to resolve a 403 error on Google Drive?
  • 3 Is the Error 404 not found a resource?
  • 4 How to retrieve content from a Google Drive?

After I make the PUT request, it returns a 404 status code with “Not Found” as the responseText. I’ve tried it before and it would return with status 200 and I was able to get the Location header from the response, but now I can’t get a 200 status code from any file. No matter which file I choose, it always outputs 404 as the status code.

How to resolve a 403 error on Google Drive?

Resolve a 403 error: The user does not have sufficient permissions for file {fileId} A insufficientFilePermissions error occurs when the user does not have write access to a file, and your app is attempting to modify that file. Following is the JSON representation of this error:

How to get the Google Drive upload ID?

I get the id of a file using the File Picker API which returns “0BzAI5S8IJebrUnQtYWFSVzhPdVk”, so that the upload URL should be ” https://www.googleapis.com/upload/drive/v3/files/0BzAI5S8IJebrUnQtYWFSVzhPdVk?uploadType=resumable “. After I make the PUT request, it returns a 404 status code with “Not Found” as the responseText.

What happens when you get a soft 404 on Google?

When a web page returns a soft 404 error, it won’t appear in Google search. Basically, Google de-indexes pages that return a soft 404 error, which in turn can impact your SEO. Let’s say you run an online store selling chairs and you’re having issues with one URL in particular: https://chairsgalorestore.com/products/sale/blue-chair

Is the Error 404 not found a resource?

Yes 404 is resource not found, but I’m using the exact downloadUrl that comes in the meta data of the file, so I think it’s correct. – Emerson Takahashi Jul 20 ’12 at 16:54 myFileId is the file id of my file in Google Drive. I got it in File/Share.

How to retrieve content from a Google Drive?

I am trying to retrieve the content of a Google Drive file using HTTP get request in a Android app. I’ve already authenticated myself and got the token, got the file metadata below (just replaced “sensitive info” with <“sensitive info”>):

When do you get a NotFound error on Google Drive?

The notFound error occurs when the user does not have read access to a file, or the file does not exist. Inform the user they don’t have read access to the file or that the file doesn’t exist. Instruct the user to ask the owner for permission to the file. A rateLimitExceeded error occurs when the user has sent too many requests in

When to resolve a 403 error in Google Drive?

Resolve a 403 error: Usage limit exceeded. An error 403 occurs when a usage limit has been exceeded or the user doesn’t have the correct privileges. To determine the specific type of error, evaluate the reason field of the returned JSON. This error occurs for the following situations: The daily limit was exceeded.

I’m using google drive REST API V3 to access the file. The basic api url is:
https://www.googleapis.com/drive/v3/files/fileid

And the header contains key: Authorization with Bearer access token obtained from oauth.

However, if you create an normal google doc, this works. the response is:

{
"id": "1v3V0BWcWtYu_K9OLm1rffHA3vj5Bz8SY-0-JpU7CiEc",
"name": "test",
"mimeType": "application/vnd.google-apps.document",
"parents": [
    "0AP75Wn-e9WDqUk9PVA"
]
}

But if I created a google doc from google template, this returns 404. see below:

{
"error": {
    "errors": [
        {
            "domain": "global",
            "reason": "notFound",
            "message": "File not found: 14gHUCFTrwHaoZ88Kr0Qnn8OsUdzcU037GK7v-JI9L1I.",
            "locationType": "parameter",
            "location": "fileId"
        }
    ],
    "code": 404,
    "message": "File not found: 14gHUCFTrwHaoZ88Kr0Qnn8OsUdzcU037GK7v-JI9L1I."
}
}

asked Jul 23, 2018 at 23:07

cairabbit's user avatar

cairabbitcairabbit

551 silver badge9 bronze badges

2

2021 answer here, in my case the issue (404 for some files) existed because the Google project number I was using was wrong.

And to make it harder, some accounts did work perfectly, and some did not using just this scope:

https://www.googleapis.com/auth/drive.file

As it is indicated in the google docs of the picker:

// Replace with your own project number from console.developers.google.com.
// See "Project number" under "IAM & Admin" > "Settings"
const appId = "1234567890";

After the project number was fixed, everything started working flawlessly (No need for https://www.googleapis.com/auth/drive scope as its a free-for-all scope that gives permissions for everything).

Cheers.

answered Apr 30, 2021 at 13:49

Josep Vidal's user avatar

Josep VidalJosep Vidal

2,5802 gold badges16 silver badges27 bronze badges

1

I did a bit test and found that the «drive.file» scope actually has some problem with getting file metadata/content. From the documentation, the «drive.file» allow the app to access the file that created by this app, or user explicitly open the file with this app, from from drive or from google doc. When I testing this, actually this doesn’t work as expect. I upload a few files, one of the files can be accessed by my app, but the others not. I remembered when I publish my app, the google drive team reviewed my app and rejected a few times with the scope, finially the app passed review with «drive.file» scope only.

Did anyone encounter same issue?

answered Aug 21, 2018 at 4:43

cairabbit's user avatar

cairabbitcairabbit

551 silver badge9 bronze badges

Filling this in here for posterity: when using the drive.file permission with a file picker, the url/token you receive will only work if the picker was hosted on the same domain as is configured in the Google Developer Console Drive SDK configuration page (https://console.developers.google.com/apis/api/drive.googleapis.com/drive_sdk).

If you are hosting it on any other domain, you’ll get a 404 if you try and use the URL to directly download the file: you’ll need to use drive.readonly or drive permissions.

answered Jun 18, 2019 at 8:12

Femi's user avatar

FemiFemi

64.3k8 gold badges118 silver badges148 bronze badges

Somehow this is not the case. I created a google doc using the resume template. I obtained the fileID and run it against files.get. I got a 200 response:

{
 "kind": "drive#file",
 "id": "1y1h2vHYwrb57O-ein7VhqMwwJKtr4pP4N4bBow7-vus",
 "name": "resumeTemplate",
 "mimeType": "application/vnd.google-apps.document"
}

BTW, the URI requst for files.get is

https://www.googleapis.com/drive/v3/files/fileId

not

https://www.googleapis.com/drive/v3/files/

answered Jul 24, 2018 at 14:27

ReyAnthonyRenacia's user avatar

1

After I requested more permissions, the problem solved. Nothing changed.

answered Nov 30, 2018 at 3:50

cairabbit's user avatar

cairabbitcairabbit

551 silver badge9 bronze badges

In my case it was about setting Drive.files().get(googleId).setSupportsAllDrives(true) to gain access to files on shared drives.

answered Dec 7, 2020 at 16:25

palisade's user avatar

palisadepalisade

4763 silver badges6 bronze badges

As the documentation says drive.file scope is used to view and manage Google Drive files and folders that you have opened or created with this app.

I also encouraged 404 Error and I finally found the solution, In my case, I used Google Drive Picker in the front-end for selecting files, and then I send the file-ids to the backend for downloading them and I had the same 404 File not found Error on the backend when I try to download files.

I see the error because I did not set appId in my picker API.
so when I try to instantiate googlePicker I set the app key and then everything is fixed.

// Replace with your own project number from console.developers.google.com.
// See "Project number" under "IAM & Admin" > "Settings"
var appId = "1234567890";

var picker = new google.picker.PickerBuilder()
            ...
            .setAppId(appId)
            ...
            .build(); 

Now both backend and front-end use the same application in google and when the user selects a file from picker API it is available in all applications.

More info: https://developers.google.com/picker/docs/

answered Feb 4, 2022 at 10:03

Jhkcia's user avatar

JhkciaJhkcia

3052 silver badges8 bronze badges

The Google Drive API returns 2 levels of error information:

  • HTTP error codes and messages in the header.
  • A JSON object in the response body with additional details that can help you
    determine how to handle the error.

Drive apps should catch and handle all errors that might be encountered when
using the REST API. This guide provides instructions on how to resolve specific
API errors.

Resolve a 400 error: Bad request

This error can result from any one of the following issues in your code:

  • A required field or parameter hasn’t been provided.
  • The value supplied or a combination of provided fields is invalid.
  • You tried to add a duplicate parent to a Drive file.
  • You tried to add a parent that would create a cycle in the directory graph.

Following is a sample JSON representation of this error:

{
  "error": {
    "code": 400,
    "errors": [
      {
        "domain": "global",
        "location": "orderBy",
        "locationType": "parameter",
        "message": "Sorting is not supported for queries with fullText terms. Results are always in descending relevance order.",
        "reason": "badRequest"
      }
    ],
    "message": "Sorting is not supported for queries with fullText terms. Results are always in descending relevance order."
  }
}

To fix this error, check the message field and adjust your code accordingly.

Resolve a 400 error: Invalid sharing request

This error can occur for several reasons. To determine the limit that has been
exceeded, evaluate the reason field of the returned JSON. This error most
commonly occurs because:

  • Sharing succeeded, but the notification email was not correctly delivered.
  • The Access Control List (ACL) change is not allowed for this user.

The message field indicates the actual error.

Sharing succeeded, but the notification email was not correctly delivered

Following is the JSON representation of this error:

{
  "error": {
    "errors": [
      {
        "domain": "global",
        "reason": "invalidSharingRequest",
        "message": "Bad Request. User message: \"Sorry, the items were successfully shared but emails could not be sent to email@domain.com.\""
      }
    ],
    "code": 400,
    "message": "Bad Request"
  }
}

To fix this error, inform the user (sharer) they were unable to share because
the notification email couldn’t be sent to the email address they want to share
with. The user should ensure they have the correct email address and that it can
receive email.

The ACL change is not allowed for this user

Following is the JSON representation of this error:

{
  "error": {
    "errors": [
      {
        "domain": "global",
        "reason": "invalidSharingRequest",
        "message": "Bad Request. User message: \"ACL change not allowed.\""
      }
    ],
    "code": 400,
    "message": "Bad Request"
  }
}

To fix this error, check the sharing settings of the Google Workspace domain to which the file belongs. The settings might
prohibit sharing outside of the domain or sharing a shared drive might not be
permitted.

Resolve a 401 error: Invalid credentials

A 401 error indicates the access token that you’re using is either expired or
invalid. This error can also be caused by missing authorization for the
requested scopes. Following is the JSON representation of this error:

{
  "error": {
    "errors": [
      {
        "domain": "global",
        "reason": "authError",
        "message": "Invalid Credentials",
        "locationType": "header",
        "location": "Authorization",
      }
    ],
    "code": 401,
    "message": "Invalid Credentials"
  }
}

To fix this error, refresh the access token using the long-lived refresh token.
If this fails, direct the user through the OAuth flow, as described in
API-specific authorization and authentication information.

Resolve a 403 error

An error 403 occurs when a usage limit has been exceeded or the user doesn’t
have the correct privileges. To determine the specific type of error, evaluate
the reason field of the returned JSON. This error occurs for the following
situations:

  • The daily limit was exceeded.
  • The user rate limit was exceeded.
  • The project rate limit was exceeded.
  • The sharing rate limit was exceeded.
  • The user hasn’t granted your app rights to a file.
  • The user doesn’t have sufficient permissions for a file.
  • Your app can’t be used within the signed in user’s domain.
  • Number of items in a folder was exceeded.

For information on Drive API limits, refer to
Usage limits. For information on Drive folder limits,
refer to
Folder limits in Google Drive.

Resolve a 403 error: Daily limit exceeded

A dailyLimitExceeded error indicates the courtesy API limit for your project
has been reached. Following is the JSON representation of this error:

{
  "error": {
    "errors": [
      {
        "domain": "usageLimits",
        "reason": "dailyLimitExceeded",
        "message": "Daily Limit Exceeded"
      }
    ],
    "code": 403,
    "message": "Daily Limit Exceeded"
  }
}

This error appears when the application’s owner has set a quota limit to cap
usage of a particular resource. To fix this error,
remove any usage caps for the «Queries per day» quota.

Resolve a 403 error: User rate limit exceeded

A userRateLimitExceeded error indicates the per-user limit has been reached.
This might be a limit from the Google API Console or a limit from the Drive
backend. Following is the JSON representation of this error:

{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "userRateLimitExceeded",
    "message": "User Rate Limit Exceeded"
   }
  ],
  "code": 403,
  "message": "User Rate Limit Exceeded"
 }
}

To fix this error, try any of the following:

  • Raise the per-user quota in the Google Cloud project. For more information,
    request a quota increase.
  • If one user is making numerous requests on behalf of many users of a Google Workspace account, consider a
    service account with domain-wide delegation
    using the
    quotaUser parameter.
  • Use exponential backoff to retry the
    request.

For information on Drive API limits, refer to
Usage limits.

Resolve a 403 error: Project rate limit exceeded

A rateLimitExceeded error indicates the project’s rate limit has been reached.
This limit varies depending on the type of requests. Following is the JSON
representation of this error:

{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "message": "Rate Limit Exceeded",
    "reason": "rateLimitExceeded",
   }
  ],
  "code": 403,
  "message": "Rate Limit Exceeded"
 }
}

To fix this error, try any of the following:

  • Raise the per-user quota in the Google Cloud project. For more information,
    request a quota increase.
  • Batch requests to make fewer
    API calls.
  • Use exponential backoff to retry the
    request.

Resolve a 403 error: Sharing rate limit exceeded

A sharingRateLimitExceeded error occurs when the user has reached a sharing
limit. This error is often linked with an email limit. Following is the JSON
representation of this error:

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "message": "Rate limit exceeded. User message: \"These item(s) could not be shared because a rate limit was exceeded: filename",
    "reason": "sharingRateLimitExceeded",
   }
  ],
  "code": 403,
  "message": "Rate Limit Exceeded"
 }
}

To fix this error:

  1. Do not send emails when sharing large amounts of files.
  2. If one user is making numerous requests on behalf of many users of a Google Workspace account, consider a
    service account with domain-wide delegation
    using the
    quotaUser parameter.

Resolve a 403 error: Storage quota exceeded

A storageQuotaExceeded error occurs when the user has reached their storage
limit. Following is the JSON representation of this error:

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "message": "The user's Drive storage quota has been exceeded.",
    "reason": "storageQuotaExceeded",
   }
  ],
  "code": 403,
  "message": "The user's Drive storage quota has been exceeded."
 }
}

To fix this error:

  1. Review the storage limits for your Drive account. For more information,
    refer to
    Drive storage and upload limits

  2. Free up space

    or get more storage from Google One.

Resolve a 403 error: The user has not granted the app {appId} {verb} access to the file {fileId}

An appNotAuthorizedToFile error occurs when your app is not on the ACL for the
file. This error prevents the user from opening the file with your app.
Following is the JSON representation of this error:

{
  "error": {
    "errors": [
      {
        "domain": "global",
        "reason": "appNotAuthorizedToFile",
        "message": "The user has not granted the app {appId} {verb} access to the file {fileId}."
      }
    ],
    "code": 403,
    "message": "The user has not granted the app {appId} {verb} access to the file {fileId}."
  }
}

To fix this error, try any of the following:

  • Open the Google Drive picker
    and prompt the user to open the file.
  • Instruct the user to open the file using the
    Open with context menu in the Drive
    UI of your app.

You can also check the isAppAuthorized field on a file to verify that your app
created or opened the file.

Resolve a 403 error: The user does not have sufficient permissions for file {fileId}

A insufficientFilePermissions error occurs when the user doesn’t have write
access to a file, and your app is attempting to modify the file. Following is
the JSON representation of this error:

{
  "error": {
    "errors": [
      {
        "domain": "global",
        "reason": "insufficientFilePermissions",
        "message": "The user does not have sufficient permissions for file {fileId}."
      }
    ],
    "code": 403,
    "message": "The user does not have sufficient permissions for file {fileId}."
  }
}

To fix this error, instruct the user to contact the file’s owner and request
edit access. You can also check user access levels in the metadata retrieved by
files.get and display a read-only UI when
permissions are missing.

Resolve a 403 error: App with id {appId} cannot be used within the authenticated user’s domain

A domainPolicy error occurs when the policy for the user’s domain doesn’t
allow access to Drive by your app. Following is the JSON representation of this
error:

{
  "error": {
    "errors": [
      {
        "domain": "global",
        "reason": "domainPolicy",
        "message": "The domain administrators have disabled Drive apps."
      }
    ],
    "code": 403,
    "message": "The domain administrators have disabled Drive apps."
  }
}

To fix this error:

  1. Inform the user the domain doesn’t allow your app to access files in Drive.
  2. Instruct the user to contact the domain Admin to request access for your
    app.

Resolve a 403 error: Number of items in folder was exceeded

A numChildrenInNonRootLimitExceeded error occurs when the limit for a folder’s
number of children (folders, files, and shortcuts) has been exceeded. There’s a
500,000 item limit for folders, files, and shortcuts directly in a folder. Items
nested in subfolders don’t count against this 500,000 item limit. For more
information on Drive folder limits, refer to
Folder limits in Google Drive
.

Resolve a 403 error: Number of items created by account was exceeded

An activeItemCreationLimitExceeded error occurs when the limit for the number
of items, whether trashed or not, created by this account has been exceeded. All
item types, including folders, count towards the limit.

Resolve a 404 error: File not found: {fileId}

The notFound error occurs when the user doesn’t have read access to a file, or
the file doesn’t exist.

{
  "error": {
    "errors": [
      {
        "domain": "global",
        "reason": "notFound",
        "message": "File not found {fileId}"
      }
    ],
    "code": 404,
    "message": "File not found: {fileId}"
  }
}

To fix this error:

  1. Inform the user they don’t have read access to the file or the file doesn’t
    exist.
  2. Instruct the user to contact the file’s owner and request permission to the
    file.

Resolve a 429 error: Too many requests

A rateLimitExceeded error occurs when the user has sent too many requests in a
given amount of time.

{
  "error": {
    "errors": [
      {
        "domain": "usageLimits",
        "reason": "rateLimitExceeded",
        "message": "Rate Limit Exceeded"
      }
    ],
    "code": 429,
    "message": "Rate Limit Exceeded"
  }
}

To fix this error, use
exponential backoff to retry the request.

Resolve a 5xx error

A 5xx error occurs when an unexpected error arises while processing the request.
This can be caused by various issues, including a request’s timing overlapping
with another request or a request for an unsupported action, such as attempting
to update permissions for a single page in a Google Site instead of the site
itself.

To fix this error, use
exponential backoff to retry the request.
Following is a list of 5xx errors:

  • 500 Backend error
  • 502 Bad Gateway
  • 503 Service Unavailable
  • 504 Gateway Timeout

Понравилась статья? Поделить с друзьями:
  • Gmail от google временная ошибка 500
  • Google docs произошла ошибка сервера
  • Gm failure record статус ошибки
  • Gm 7144 ошибка актрос
  • Google docs произошла ошибка обновить