# ValueError: Duplicate route path: /items

- **ID:** `python/fastapi-valueerror-duplicate-route-path`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Two route decorators define the same path without differentiating methods.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **Use different HTTP methods for same path** (95% success)
   ```
   @app.get('/items')
async def list_items(): pass
@app.post('/items')
async def create_item(): pass
   ```
2. **Use different paths** (90% success)
   ```
   @app.get('/items')
async def list_items(): pass
@app.get('/items/{item_id}')
async def get_item(item_id: int): pass
   ```

## Dead Ends

- **Removing one route entirely** — May lose needed functionality. (50% fail)
- **Changing function name only** — Path remains duplicate. (70% fail)
