You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "RodrigoMorteo (via GitHub)" <gi...@apache.org> on 2025/06/14 00:34:17 UTC
[I] Blank plugin page on new Standalone Plugin or Consumer/Route Plugin sections in the dashboard. [apisix-dashboard]
RodrigoMorteo opened a new issue, #3122:
URL: https://github.com/apache/apisix-dashboard/issues/3122
### Issue description
When setting up a fresh instance of APISIX and APISIX Dashboard using Docker Compose, attempting to create a new Consumer or Route results in a blank page at the "Plugin Config" step. Same happens when cllicking on the Plugin section in the main menu. The browser console shows a fatal TypeError, which appears to be caused by an uncaught error when the dashboard's backend fails to fetch a global rule with ID 1 from the APISIX Admin API.
When using the /plugin/list route the issue seems to be that the dashboard's UI expects /apisix/admin/global_rules/1 to exist, and when it receives a 404 Not Found response, the frontend JavaScript fails and does not render the component, followed by a ```p__Route__Create.e49e3cfc.async.js:1 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'find')```.
The internal logs for the apisix-dashboard container show a corresponding warning:
```
WARN store/store.go:128 data not found by key: 1
```
After adding the rule the response is successful but the issue persists.
```bash
curl -i "http://127.0.0.1:9180/apisix/admin/global_rules/1" \
-H "X-API-KEY: [SECRET_KEY]" -X PUT \
-d '{
"plugins": {}
}'```
The response is successful:
```bash
HTTP/1.1 201 Created
Date: Fri, 13 Jun 2025 23:59:43 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Server: APISIX/3.12.0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: *
Access-Control-Max-Age: 3600
X-API-VERSION: v3
{"value":{"plugins":{},"id":"1","create_time":1749859183,"update_time":1749859183},"key":"/apisix/global_rules/1"}
```
Note that the adding routes, and consumers via API with plugins configured is also successful:
```bash
curl -i "http://127.0.0.1:9180/apisix/admin/consumers" \
-H "X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" -X PUT \
-d '{
"username": "internal_services",
"plugins": {
"key-auth": {
"key": "my-secret-key"
}
},
"desc": "Consumer for an intra service communication"
}'
HTTP/1.1 201 Created
Date: Sat, 14 Jun 2025 00:19:27 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Server: APISIX/3.12.0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: *
Access-Control-Max-Age: 3600
X-API-VERSION: v3
{"value":{"create_time":1749860367,"username":"internal_services","desc":"Consumer for an intra service communication","plugins":{"key-auth":{"key":"kK0lkbzXrE7aiTiyK/Z0Sw=="}},"update_time":1749860367},"key":"/apisix/consumers/internal_services"}
```
Which means that APISIX backend is properly working.
### Expected behavior
The list of available plugins must show in the Plugin page and on it's corresponding step for adding or editing Consumers or Routes.
### How to Reproduce
1.- Unzip the attached apisix config in a new folder
2.- Run docker compose up -d
3.- Open your browser in http://127.0.0.1:9000
4.- Login with admin credentials
5.- Click in the Plugin menu option
6.- (optional) add a consumer or route and go to the plugin step.
### Screenshots




### Environment
- apisix version: 3.12.0
- OS WSL Ubuntu 24.04.2 LTS
- OpenResty / Nginx version: openresty/1.27.1.1
- etcd version: 3.5.17
- apisix-dashboard version: 3.0.1
- Browser version: Edge Version 137.0.3296.68 (Official build) (64-bit) and Chrome Version 137.0.7151.69 (Official Build) (64-bit)
See attached zip with configuration files and console log.
[apisix-config.zip](https://github.com/user-attachments/files/20734557/apisix-config.zip)
### Additional context
The same behavior was present in x86 Ubuntu based AWS EC2 instances with ubuntu 24.04.02.
--
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: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Blank plugin page on new Standalone Plugin or Consumer/Route Plugin sections in the dashboard. [apisix-dashboard]
Posted by "SkyeYoung (via GitHub)" <gi...@apache.org>.
SkyeYoung commented on issue #3122:
URL: https://github.com/apache/apisix-dashboard/issues/3122#issuecomment-2975246143
> I'm not sure if the plugins will actually work as per [SkyeYoung](https://github.com/SkyeYoung) [linked issue](https://github.com/apache/apisix-dashboard/issues/3122#issuecomment-2974950861) comment, but at least you won't get the blank page any more. **Note** that you must add the global rule as well (as described in the original issue).
> However, the bug will still exist (for the time being) as a blank page is not the expected behavior for when the config section is missing.
Currently, we have greatly simplified the design of the dashboard, which means directly using the data provided by the APISIX admin API.
If there are any problems, there are two possibilities:
1. The admin API either doesn't provide the information or provides the wrong information. I think this kind should be resolved by APISIX.
2. The dashboard is not handling the data correctly. This kind problems will be solved in the dashboard project.
For now, the remade dashboard doesn't have many users. I can't make sure that there is enough test coverage for the second type of problem, and there are still many tests waiting to be completed. Let's see the community's response after APISIX is released.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Blank plugin page on new Standalone Plugin or Consumer/Route Plugin sections in the dashboard. [apisix-dashboard]
Posted by "RodrigoMorteo (via GitHub)" <gi...@apache.org>.
RodrigoMorteo closed issue #3122: Blank plugin page on new Standalone Plugin or Consumer/Route Plugin sections in the dashboard.
URL: https://github.com/apache/apisix-dashboard/issues/3122
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Blank plugin page on new Standalone Plugin or Consumer/Route Plugin sections in the dashboard. [apisix-dashboard]
Posted by "SimonMuraya (via GitHub)" <gi...@apache.org>.
SimonMuraya commented on issue #3122:
URL: https://github.com/apache/apisix-dashboard/issues/3122#issuecomment-3028327532
Reverting to` apache/apisix-dashboard:3.0.0-alpine` has worked for me.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Blank plugin page on new Standalone Plugin or Consumer/Route Plugin sections in the dashboard. [apisix-dashboard]
Posted by "SkyeYoung (via GitHub)" <gi...@apache.org>.
SkyeYoung commented on issue #3122:
URL: https://github.com/apache/apisix-dashboard/issues/3122#issuecomment-2974950861
Sorry, but please check #2981.
TL;DR: Due to the lack of community members for maintenance, we currently have no plans to continue maintaining the old version of `apisix-dashboard`. Welcome pull requests for continued maintenance.
It's currently more recommended to try the new dashboard, even though it's very different from the old one.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Blank plugin page on new Standalone Plugin or Consumer/Route Plugin sections in the dashboard. [apisix-dashboard]
Posted by "RodrigoMorteo (via GitHub)" <gi...@apache.org>.
RodrigoMorteo commented on issue #3122:
URL: https://github.com/apache/apisix-dashboard/issues/3122#issuecomment-2975002274
Just as a follow-up, The sample config file from the docker image has the whole plugin section missing. Adding the follwing to the bottom of the apisix_dashboard_config.yml file (according to the configuration in the zip file) will solve the issue.
```yaml
#... all the other config already in the apisix-dashboard-config.yml file
plugins:
- api-breaker
- authz-casbin
- authz-casdoor
- authz-keycloak
- aws-lambda
- azure-functions
- basic-auth
# - batch-requests
- clickhouse-logger
- client-control
- consumer-restriction
- cors
- csrf
- datadog
# - dubbo-proxy
- echo
- error-log-logger
# - example-plugin
- ext-plugin-post-req
- ext-plugin-post-resp
- ext-plugin-pre-req
- fault-injection
- file-logger
- forward-auth
- google-cloud-logging
- grpc-transcode
- grpc-web
- gzip
- hmac-auth
- http-logger
- ip-restriction
- jwt-auth
- kafka-logger
- kafka-proxy
- key-auth
- ldap-auth
- limit-conn
- limit-count
- limit-req
- loggly
# - log-rotate
- mocking
# - node-status
- opa
- openid-connect
- opentelemetry
- openwhisk
- prometheus
- proxy-cache
- proxy-control
- proxy-mirror
- proxy-rewrite
- public-api
- real-ip
- redirect
- referer-restriction
- request-id
- request-validation
- response-rewrite
- rocketmq-logger
- server-info
- serverless-post-function
- serverless-pre-function
- skywalking
- skywalking-logger
- sls-logger
- splunk-hec-logging
- syslog
- tcp-logger
- traffic-split
- ua-restriction
- udp-logger
- uri-blocker
- wolf-rbac
- zipkin
- elasticsearch-logge
- openfunction
- tencent-cloud-cls
- ai
- cas-auth
```
I'm not sure if the plugins will actually work as per [SkyeYoung](https://github.com/SkyeYoung)
[linked issue](https://github.com/apache/apisix-dashboard/issues/3122#issuecomment-2974950861) comment, but at least you won't get the blank page any more. **Note** that you must add the global rule as well (as described in the original issue).
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Blank plugin page on new Standalone Plugin or Consumer/Route Plugin sections in the dashboard. [apisix-dashboard]
Posted by "njleonzhang (via GitHub)" <gi...@apache.org>.
njleonzhang commented on issue #3122:
URL: https://github.com/apache/apisix-dashboard/issues/3122#issuecomment-2973526458
same issue
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org