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

list method return "stream did not contain valid UTF-8" #117

Open
llvvrui opened this issue Jul 26, 2023 · 2 comments
Open

list method return "stream did not contain valid UTF-8" #117

llvvrui opened this issue Jul 26, 2023 · 2 comments

Comments

@llvvrui
Copy link

llvvrui commented Jul 26, 2023

I use from_utf8_lossy method read u8 array buffer,look
1

@qy513314
Copy link

qy513314 commented Oct 19, 2023

I'm having the same issue
version = 3.0.1
image
image

@EternalNight996
Copy link

I'm having the same issue;

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(())
}

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
error Command failed with exit code 101.

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

3 participants