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

"stream did not contain valid UTF-8" #120

Open
EternalNight996 opened this issue Mar 26, 2024 · 0 comments
Open

"stream did not contain valid UTF-8" #120

EternalNight996 opened this issue Mar 26, 2024 · 0 comments

Comments

@EternalNight996
Copy link

Example

use e_services::ftp::Ftp;
fn test() -> Result<()> {
  let mut ftp = Ftp::connect(FtpInfo {
    host: "192.168.127.7",
    uname: "ftpdata",
    passwd: "F%0D@ta",
    port: 21,
  })?;
  ftp.login()?;
  let pwd = ftp.pwd()?;
  println!("pwd {pwd:?}");
  // let list = ftp.list(Some("/"))?;
  // println!("list {list:?}");
  let nlst = ftp.nlst(None)?;
  println!("nlst {nlst:?}");
  Ok(())
}

Error

pwd "/"
thread 'main' panicked at e-services\src\ftp\mod.rs:120:32:
called `Result::unwrap()` on an `Err` value: ConnectionError(Error { kind: InvalidData, message: "stream did not contain valid UTF-8" })
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[0326/110702.005:ERROR:window_impl.cc(120)] Failed to unregister class Chrome_WidgetWin_0. Error = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant