maple3142 / GDIndex

A Google Drive Index built with Vue Running on CloudFlare Workers
https://gdindex-demo.maple3142.workers.dev/
MIT License
1.85k stars 1.13k forks source link

HTTPError: Forbidden errros #184

Open rootxad opened 3 years ago

rootxad commented 3 years ago

Bug Description / 問題描述

The index sometime throughs an error:

"HTTPError: Forbidden\n at responseErrorThrower (worker.js:185:26)\n at async GoogleDrive.existsInParent (worker.js:499:20)\n at async onGet (worker.js:589:31)\n at async handleRequest (worker.js:769:42)"

This error is been reported before, but as per lack of information and not using the issue template the author closed the report. I checked and the installation and config are done properly. I also think it is not because of the bandwidth limit as if I refresh the URL some time it succeeds.

Environment / 環境

rootxad commented 3 years ago

Or if we can return a new response if this error occurs, as if request returns status 500, return a new response with Unknown error and hide this error.

"HTTPError: Forbidden\n at responseErrorThrower (worker.js:185:26)\n at async GoogleDrive.existsInParent (worker.js:499:20)\n at async onGet (worker.js:589:31)\n at async handleRequest (worker.js:769:42)"

maple3142 commented 3 years ago

Can't reproduct, maybe it has some problem with your Google account, consider trying it on other Google account

devcrono commented 3 years ago

I'm using services account, in your script and time or other he gives this error message

"HTTPError: Forbidden\n at responseErrorThrower (worker.js:192:26)\n at async onGet (worker.js:2762:19)\n at async handleRequest (worker.js:2975:42)"

I attached the cod. for conference teste.txt

njzjz commented 3 years ago

I got another error...

"HTTPError: Conflict\n    at responseErrorThrower (worker.js:177:26)\n    at async GoogleDrive.initializeClient (worker.js:2523:22)\n    at async GoogleDrive.listFolder (worker.js:2585:7)\n    at async handleRequest (worker.js:2908:11)"

UPDATE: I resolved this problem. It's a bug of CloudFlare Workers.

rootxad commented 3 years ago

UPDATE: I solved this problem. It's a bug of CloudFlare Workers.

Would you like to share the bug ?? or how you solved it ??

njzjz commented 3 years ago

UPDATE: I solved this problem. It's a bug of CloudFlare Workers.

Would you like to share the bug ?? or how you solved it ??

cloudflare resolved it, but not me... I don't think your bug is the same as mine, but you can consider if it is a cloudflare's network issue.

Monster-ZeroX commented 3 years ago

How Can I Fix This