8000 Crashes occasionally · Issue #544 · tower-rs/tower-http · GitHub
[go: up one dir, main page]

Skip to content
Crashes occasionally #544
@yuhaya

Description

@yuhaya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0