MYDIH commented on issue #5205:
URL: https://github.com/apache/opendal/issues/5205#issuecomment-2423241332
Hi !
Here is a reproducer :
```rust
use std::sync::LazyLock;
use anyhow::{Ok, Result};
use opendal::{
layers::{BlockingLayer, LoggingLayer},
services::Webdav,
Operator,
};
fn check_opendal_webdav() -> Result<()> {
static RUNTIME: LazyLock<tokio::runtime::Runtime> = LazyLock::new(|| {
tokio::runtime::Builder::new_multi_thread()
.enable_all()
.build()
.unwrap()
});
let _guard = RUNTIME.enter();
Operator::new(
Webdav::default()
.endpoint("https://dav.server")
.username("username")
.password("password")
.root("/"),
)?
.layer(LoggingLayer::default())
.layer(BlockingLayer::create()?)
.finish()
.blocking()
.read("file")?;
Ok(())
}
```
The error I'm getting is :
> Caused by:
0: error sending request for url (https://dav.server/file)
1: client error (Connect)
2: invalid URL, scheme is not http
Maybe I did something wrong or the error is misleading ? What do you think ?
--
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]