GitHub user dosubot[bot] added a comment to the discussion: Panic on listing objects with huaweicloud
<!-- Greeting --> Hi @mag1c1an1! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the opendal team. <!-- Answer --> This panic is likely caused by how OpenDAL handles the root path "/" for some S3-compatible services. There's a known issue where setting the root to "/" can cause path resolution errors, especially if the backend (like Huawei Cloud) interprets paths differently than MinIO. This has been seen before with other S3-compatible services and is related to how OpenDAL builds request paths internally, sometimes resulting in an invalid or empty path and triggering the "get rel path with root is invalid" panic [see details](https://github.com/apache/opendal/issues/5705). Try changing your list call from op.list("/") to op.list("") (an empty string), or avoid specifying the root path if possible. This workaround has resolved similar issues for other users. If the problem persists, enabling detailed logging in OpenDAL may help you capture the exact request/response and see what path is being sent to Huawei Cloud. If you can share the log trace or clarify how the root path is set in your config, I can help dig deeper. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/7a08ec32-b95d-4b28-bb2a-e00802e415c8?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/7a08ec32-b95d-4b28-bb2a-e00802e415c8?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/7a08ec32-b95d-4b28-bb2a-e00802e415c8?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/7a08ec32-b95d-4b28-bb2a-e00802e415c8?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/7a08ec32-b95d-4b28-bb2a-e00802e415c8?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/7a08ec32-b95d-4b28-bb2a-e00802e415c8?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/7a08ec32-b95d-4b28-bb2a-e00802e415c8?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/opendal/discussions/6419) GitHub link: https://github.com/apache/opendal/discussions/6419#discussioncomment-13760293 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
