TeamAmaze / AmazeFileManager

Material design file manager for Android
https://teamamaze.xyz
GNU General Public License v3.0
5.37k stars 1.58k forks source link

HttpException: Forbidden - In case this occurs on every request, make sure that the Google Drive API is enabled #2403

Open amaze-issue-automation[bot] opened 3 years ago

amaze-issue-automation[bot] commented 3 years ago

Issue explanation (write below this line)

While checking file properties on gdrive file

Exception

java.lang.RuntimeException: An error occurred while executing
doInBackground()
at android.os.AsyncTask$4.done(AsyncTask.java:415)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
at java.util.concurrent.FutureTask.run(FutureTask.java:271)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
Caused by: com.cloudrail.si.exceptions.HttpException: Forbidden - In case
this occurs on every request, make sure that the Google Drive API is
enabled. Otherwise, you might hit your Google Drive rate limit and need to
make less calls per second.
at com.cloudrail.si.services.GoogleDrive.getMetadata(GoogleDrive.java:1549)
at com.amaze.filemanager.filesystem.HybridFile.length(HybridFile.java:298)
at
com.amaze.filemanager.filesystem.files.FileUtils.getSpaces(FileUtils.java:555)
at
com.amaze.filemanager.asynchronous.asynctasks.LoadFolderSpaceDataTask.doInBackground(LoadFolderSpaceDataTask.java:85)
at
com.amaze.filemanager.asynchronous.asynctasks.LoadFolderSpaceDataTask.doInBackground(LoadFolderSpaceDataTask.java:53)
at android.os.AsyncTask$3.call(AsyncTask.java:394)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
... 3 more


EmmanuelMess commented 3 years ago

@VishalNehra ping