# werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'external'

- **ID:** `python/flask-url-for-external-error`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

尝试为外部端点构建 URL，但该端点未注册或未定义。

## Version Compatibility

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

## Workarounds

1. **** (90% success)
   ```
   正确使用 `url_for('external_endpoint')`，确保端点已定义且导入。
   ```
2. **** (85% success)
   ```
   对于外部 URL，使用 `url_for('endpoint', _external=True)` 生成绝对 URL。
   ```

## Dead Ends

- **** — 在 `url_for` 中使用了错误的端点名称，例如拼写错误或未包含蓝图前缀。 (70% fail)
- **** — 尝试为外部服务构建 URL，但未使用 `_external=True` 参数。 (50% fail)
