anasty17 / mirror-leech-telegram-bot

Official Repository: Telegram bot which can download direct links, torrents, nzb, google drive, telegram document, any file/folder from rclone supported clouds, all yt-dlp supported sites and jdownloader supported sites, then upload them to google drive, telegram cloud or to one of rclone supported clouds
https://t.me/mltb_official_channel
GNU General Public License v3.0
3.45k stars 4.77k forks source link

HttpError 403 #611

Closed X-Gorn closed 2 years ago

X-Gorn commented 2 years ago

I tried to upload a file and it is uploaded, but getting this error.

HttpError 403 when requesting https://www.googleapis.com/drive/v3/files/1ihmHyI0kAv2VD3HUIo6n5qqH3BiR5suZ/permissions?supportsTeamDrives=true&alt=json returned "The user does not have sufficient permissions for this file.". Details: "[{'domain': 'global', 'reason': 'insufficientFilePermissions', 'message': 'The user does not have sufficient permissions for this file.'}]">

X-Gorn commented 2 years ago

And it says supportsTeamDrives=true, tho i'm not using a team drive (already set IS_TEAM_DRIVE=False)

BlazingTruth01 commented 2 years ago

message

it means your teamdrive is nuked... It's no longer available, check your shared drives

X-Gorn commented 2 years ago

@AkashWasim no, i'm not using a team drive. and i said it is uploaded.

anasty17 commented 2 years ago

This only happening while uploading folder ?

X-Gorn commented 2 years ago

all mirror commands, except for /clone

anasty17 commented 2 years ago

Try with TeamDrive=true and give me feedback

krishus96 commented 2 years ago

Same problem Using TeamDrive

anasty17 commented 2 years ago

Edu account?

anasty17 commented 2 years ago

@krishus96

gillzxo commented 2 years ago

Your SA ACCOUNT GONE CHECK SPAM MAIL BOX

krishus96 commented 2 years ago

Edu account?

You mean by TD Yes, EDU TD

krishus96 commented 2 years ago

Screenshot_20220601-113744_Termius Same with Org TD

But File is Uploaded to drive

And error cones only with command /clone

krishus96 commented 2 years ago

I have come to a point that it is only happening with gdtot links

AAMIRFAROOQ1899 commented 2 years ago

2022-06-01 16:55:41,941 - bot - INFO - Bot Started! 2022-06-01 16:56:51,666 - bot - INFO - https://meg/file/IPtxlRST#Mmu7ciHTqc2dkbe5IFyII8pLxVN3Z36D92Ie2liKOyA 2022-06-01 16:56:55,335 - bot - INFO - Fetching Root Node. 2022-06-01 16:56:55,336 - bot - INFO - Node Name: Cloud Drive 2022-06-01 16:56:56,482 - bot - INFO - File. If your download didn't start, then check your link if it's available to download 2022-06-01 16:57:37,699 - bot - INFO - Download completed: Memory.2022.720p.WEB-HD.x264.900MB-Pahe.in.mkv 2022-06-01 16:57:37,699 - bot - INFO - Upload Name: Memory.2022.720p.WEB-HD.x264.900MB-Pahe.in.mkv 2022-06-01 16:57:37,699 - bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Authorizing with 48.json service account 2022-06-01 16:57:38,468 - bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Uploading File: /usr/src/app/downloads/85/Memory.2022.7 20p.WEB-HD.x264.900MB-Pahe.in.mkv 2022-06-01 16:57:47,070 - bot.helper.mirror_utils.upload_utils.gdriveTools - INFO - Total Attempts: 3 2022-06-01 16:57:47,070 - bot.helper.mirror_utils.upload_utils.gdriveTools - ERROR - <HttpError 404 when requesting None returned "File not found: 0AFo31E1md2-5Uk9PVA.". Details: "[{'domain': 'global', 'reason': 'notFound', 'message': 'File not found: 0AFo31E1md2-5Uk9PVA.', 'locationType': 'parameter', 'location': 'fileId'}]"> 2022-06-01 16:57:47,072 - bot - INFO - Cleaning Download: /usr/src/app/downloads/85

help

anasty17 commented 2 years ago

I have come to a point that it is only happening with gdtot links

Oh then ok U need token.pickle from same account used in gdtot. Since code delete the cloned file. U need to know how gdtot works first. Gdtot clone the file to ur root drive then code clone from root to td or to any target since its public link. After that code delete the first cloned file from gdtot, which u don't have permission to delete it

X-Gorn commented 2 years ago

Edu account?

yes

anasty17 commented 2 years ago

Edu account?

yes

https://github.com/anasty17/mirror-leech-telegram-bot/issues/611#issuecomment-1144004759