# werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'user_profile'. Did you mean 'user' instead?

- **ID:** `python/flask-build-error-endpoint`
- **Domain:** python
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

url_for() references an endpoint name that does not exist or is misspelled relative to the registered view function name.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   @app.route('/profile')
def user_profile(): ...
url_for('user_profile')
   ```
2. **** (90% success)
   ```
   print(app.url_map)
   ```

## Dead Ends

- **** — Breaks on app mounted under a prefix or behind a proxy; loses url_for's escaping. (70% fail)
- **** — Unrelated to endpoint name resolution. (85% fail)
