Repository navigation
Drive: tự tạo lại thư mục gốc khi ID đã lưu không còn (File not found) - #217
Merged
Merged
Conversation
/api/desktop/drive/prepare lỗi lặp 'File not found: <rootId>' khi studio_drive.root_folder_id trỏ tới thư mục đã xoá / vào thùng rác / thuộc tài khoản Google trước đó. ensureRootFolder giờ soi thư mục gốc, mất thật (404 hoặc trashed) thì tạo lại. Route prepare bắt lỗi Drive trả JSON 502. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwYcd2Ld9VVBksLHmVsmpj
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
Vòng theo dõi 10s gọi lại /api/desktop/drive/prepare liên tục cho hợp đồng lỗi (416 lần trong nhật ký lỗi). Bấm tay vẫn hỏi lại ngay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwYcd2Ld9VVBksLHmVsmpj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Vấn đề
/api/desktop/drive/preparelỗi lặp lại:File not found: <id>. ID đó là thư mục gốc Drive lưu ởstudio_drive.root_folder_id, nhưng thư mục không còn dùng được: đã bị xoá / vào thùng rác, hoặc studio kết nối lại Drive bằng tài khoản Google khác (khi kết nối lại app vẫn giữ ID gốc cũ, và quyềndrive.filekhông thấy thư mục của tài khoản trước). Vì vậy mọi lần tạo thư mục con đều hỏng.Thay đổi
ensureRootFolder: kiểm tra thư mục gốc đã lưu. Nếu Drive trả 404 hoặc thư mục đã vào thùng rác thì xoá ID cũ và tạo lại. Lỗi khác (mạng, quota, 5xx) coi như thư mục vẫn còn, để không tạo gốc trùng.prepare: bắt lỗi Drive, trả JSONdrive_failed: …(502) thay vì 500 không xử lý.Lưu ý
drive_folder_idtrỏ vào cây cũ vẫn giữ nguyên, bản này không tạo lại.tscvàeslint; chưa chạy thử với tài khoản Drive thật.Generated by Claude Code