actix / actix/actix-web

URL dispatch depends on route registration order rather than convention

Open
#2,897 6 comments 3 reactions 0 assignees View on GitHub
A-web needs-investigation RFC / Proposal
Dominant language
Rust
Stars
24.8k
Forks
1.9k
Avg merge
23h 10m
Merged PRs (30d)
26

Description

## Expected Behavior

URL dispatch works in the same way regardless of configuration order.

## Current Behavior

If a handler with Path extractor is registered before the nested endpoint it will throw an error like this:
`cannot parse "ROUTE_URL" to a i64 `

## Your Environment

- Rust Version (I.e, output of `rustc -V`):
`rustc 1.62.1 (e092d0b6b 2022-07-16)`
- Actix Web Version: `4.2.1`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.