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

Crashes occasionally #544

Open
1 task
yuhaya opened this issue Feb 20, 2025 · 1 comment
Open
1 task

Crashes occasionally #544

yuhaya opened this issue Feb 20, 2025 · 1 comment

Comments

@yuhaya
Copy link

yuhaya commented Feb 20, 2025

Crash logs

thread 'tokio-runtime-worker' panicked at /Users/rustyu/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tower-http-0.6.2/src/services/fs/serve_dir/open_file.rs:320:25:
called `Result::unwrap()` on an `Err` value: http::Error(InvalidUriParts(InvalidUri(SchemeMissing)))
  • I have looked for existing issues (including closed) about this

Bug Report

Version

v0.6.2

Platform

Linux VM-0-7-centos 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Description

  1. If there is an abnormality, it is recommended to prompt a warning log instead of directly unwrap to cause the system to crash
  2. Display more detailed request address information to facilitate error troubleshooting

We have checked the user's request address for a long time and found no obvious abnormal problems

@seanmonstar
Copy link
Collaborator

Yea it seems like an unwrap shouldn't be used there.

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

2 participants