Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[aliyun drive] cannot list / #4752

Closed
imWildCat opened this issue Jun 17, 2024 · 2 comments · Fixed by #4754
Closed

[aliyun drive] cannot list / #4752

imWildCat opened this issue Jun 17, 2024 · 2 comments · Fixed by #4754
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed services/aliyun_drive

Comments

@imWildCat
Copy link
Contributor

19:18:42 [DEBUG] (6) hyper_util::client::legacy::pool: pooling idle connection for ("https", openapi.alipan.com)
19:18:42 [DEBUG] (6) opendal::services::aliyun_drive::backend: backend build started: AliyunDriveBuilder { config: AliyunDriveConfig { root: None, drive_type: "", .. }, .. }
19:18:42 [DEBUG] (6) opendal::services::aliyun_drive::backend: backend use root /
19:18:42 [DEBUG] (6) opendal::services::aliyun_drive::backend: backend use drive_type Default
19:18:42 [DEBUG] (6) opendal::services: service=aliyun_drive operation=metadata -> started
19:18:42 [DEBUG] (6) opendal::services: service=aliyun_drive operation=metadata -> finished: AccessorInfo { scheme: AliyunDrive, root: "/", name: "", native_capability: { Stat | Read | Write | CreateDir | Delete | Copy | Rename | List }, full_capability: { Stat | Read | Write | CreateDir | Delete | Copy | Rename | List } }
19:18:42 [DEBUG] (6) opendal::services: service=aliyun_drive operation=list path=/ -> started
19:18:42 [DEBUG] (6) reqwest::connect: starting new connection: https://openapi.alipan.com/
19:18:42 [DEBUG] (33) hyper_util::client::legacy::connect::dns: resolving host="openapi.alipan.com"
19:18:42 [DEBUG] (6) hyper_util::client::legacy::connect::http: connecting to 39.106.251.95:443
19:18:42 [DEBUG] (7) hyper_util::client::legacy::connect::http: connected to 39.106.251.95:443
19:18:43 [DEBUG] (7) hyper_util::client::legacy::pool: pooling idle connection for ("https", openapi.alipan.com)
19:18:43 [DEBUG] (7) hyper_util::client::legacy::pool: reuse idle connection for ("https", openapi.alipan.com)
19:18:43 [DEBUG] (7) hyper_util::client::legacy::pool: pooling idle connection for ("https", openapi.alipan.com)
19:18:43 [ERROR] service=aliyun_drive operation=list path=/ -> Unexpected (permanent) at list, context: { service: aliyun_drive, path: / } => The input parameter file_path is not valid. file_path is required
19:18:43 [INFO] get_remote_storage_settings;
19:18:43 [INFO] get_remote_storage_settings_validation;

However, if we set "root" is the root, it works:

aliyun_drive_builder
                .access_token(&aliyun_drive_config.access_token)
                .root("root");
19:25:00 [DEBUG] (10) opendal::services: service=aliyun_drive operation=list path=/ -> start listing dir
19:25:00 [DEBUG] (10) opendal::services: service=aliyun_drive operation=list path=/ -> finished
19:25:00 [DEBUG] (10) opendal::services: service=aliyun_drive operation=list path=/ -> all entries read finished
@Xuanwo Xuanwo added services/aliyun_drive good first issue Good for newcomers help wanted Extra attention is needed labels Jun 18, 2024
@yuchanns
Copy link
Member

/assign me

@suyanhanx
Copy link
Member

/assign me

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed services/aliyun_drive
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants