rclone error: 's3 protocol error: received listing v1 with IsTruncated set, no NextMarker and no Contents'
在尝试使用 rclone lsf 列出 Supabase 存储桶中的对象时,你可能会遇到错误:'s3 protocol error: received listing v1 with IsTruncated set, no NextMarker and no Contents'。
🌐 When attempting to list objects from a Supabase bucket using rclone lsf, you might encounter the error: 's3 protocol error: received listing v1 with IsTruncated set, no NextMarker and no Contents'.
为什么会这样 #
🌐 Why this happens
这个问题出现是因为 rclone 默认使用 S3 列表 API 版本 1。使用这个版本在与 Supabase Storage 交互时,可能无法正确处理大型分页桶列表。
🌐 This issue arises because rclone defaults to using S3 List API Version 1. This version may not correctly handle large, paginated bucket listings when interacting with Supabase Storage.
如何解决这个问题 #
🌐 How to resolve this
为了解决这个问题,明确指示 rclone 使用 S3 列表 API 版本 2。可以通过在你的 rclone lsf 命令中添加 --s3-list-version 2 标志来实现。
🌐 To resolve this, explicitly instruct rclone to use S3 List API Version 2. This can be done by adding the --s3-list-version 2 flag to your rclone lsf command.
示例:
rclone lsf supabase:bucket-name --s3-list-version 2
🌐 Example:
rclone lsf supabase:bucket-name --s3-list-version 2