GDIndex icon indicating copy to clipboard operation
GDIndex copied to clipboard

HTTPError: Forbidden errros

Open rootxad opened this issue 4 years ago • 7 comments

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 / 環境

  • Browser version / 瀏覽器版本: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36Chrome 88 on Linux
  • OS version / 作業系統版本: Ubuntu 18.04

rootxad avatar Feb 02 '21 13:02 rootxad

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)"

rootxad avatar Feb 03 '21 08:02 rootxad

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

maple3142 avatar Feb 03 '21 08:02 maple3142

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

devcrono avatar Feb 07 '21 18:02 devcrono

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.

njzjz avatar Feb 23 '21 08:02 njzjz

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

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

rootxad avatar Mar 24 '21 11:03 rootxad

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.

njzjz avatar Mar 24 '21 23:03 njzjz

How Can I Fix This

Monster-ZeroX avatar Apr 17 '21 13:04 Monster-ZeroX