dosubot[bot] commented on issue #6593: URL: https://github.com/apache/opendal/issues/6593#issuecomment-3335643707
<!-- Answer --> This panic happens because WASM environments (like browsers) don't support environment variables, so any attempt to read them (such as via `Config::from_env` in the azblob backend) will panic at runtime. This is a known issue and has been reported by other users as well. Currently, there isn't a WASM-safe configuration pattern for azblob in OpenDAL that avoids this problem—WASM support is still in early stages and not fully ready for practical use, and improvements to error handling and configuration are planned but not yet complete [citation](https://github.com/apache/opendal/issues/3803). A possible workaround is to ensure credentials are passed directly to the builder rather than relying on environment variables. If the API doesn't support this yet, adding explicit credential setters or a WASM-specific configuration path would be a valuable contribution. If you move forward with a PR, documenting any WASM-specific patterns or limitations you encounter will help others facing the same issue. Happy to help answer questions or review WASM-specific changes! <!-- 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/abb95f60-5a5e-4790-8d37-53ad4f9c731c?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/abb95f60-5a5e-4790-8d37-53ad4f9c731c?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/abb95f60-5a5e-4790-8d37-53ad4f9c731c?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/abb95f60-5a5e-4790-8d37-53ad4f9c731c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/abb95f60-5a5e-4790-8d37-53ad4f9c731c?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/abb95f60-5a5e-4790-8d37-53ad4f9c731c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/abb95f60-5a5e-4790-8d37-53ad4f9c731c?feedback_type=other)</sup> [](https://app.dosu.dev/997a2c5a-0c54-497b-989d-44651635dd36/ask?utm_source=githu b) [](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/issues/6593) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
