atul-astronomer opened a new issue, #55142:
URL: https://github.com/apache/airflow/issues/55142
### Apache Airflow version
main (development)
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
```javascript
File "/opt/airflow/airflow-core/src/airflow/api_fastapi/main.py", line 27,
in <module>
app = cached_app(apps=os.environ.get("AIRFLOW_API_APPS", "all"))
File "/opt/airflow/airflow-core/src/airflow/api_fastapi/app.py", line 111,
in cached_app
app = create_app(apps=apps)
File
"/opt/airflow/airflow-core/src/airflow/utils/providers_configuration_loader.py",
line 54, in wrapped_function
return func(*args, **kwargs)
File "/opt/airflow/airflow-core/src/airflow/api_fastapi/app.py", line 97,
in create_app
init_ui_plugins(app)
File "/opt/airflow/airflow-core/src/airflow/api_fastapi/core_api/app.py",
line 200, in init_ui_plugins
plugins_manager.initialize_ui_plugins()
File "/opt/airflow/airflow-core/src/airflow/plugins_manager.py", line 396,
in initialize_ui_plugins
url_route = external_view["url_route"]
TypeError: list indices must be integers or slices, not str
```
### What you think should happen instead?
_No response_
### How to reproduce
Have the below file in your plugins folder:
```python
from airflow.plugins_manager import AirflowPlugin
external_views = [
{
"name": "Airflow Croma",
"href": "https://airflow.apache.org/docs/",
"destination": "nav",
"icon": "book",
"url_route": None,
"category": "browse"
},
{
"name": "Grafana Dashboards",
"href": "https://grafana.mycompany.com/",
"destination": "nav",
"icon": "activity",
"url_route": "my_external_view",
"category": "admin"
}
]
# Defining the plugin class
class AirflowTestPlugin2(AirflowPlugin):
name = "test_plugin2"
external_views = [external_views]
```
### Operating System
Linux
### Versions of Apache Airflow Providers
_No response_
### Deployment
Other
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]