apache / apisix-dashboard

Dashboard for Apache APISIX
https://apisix.apache.org/
Apache License 2.0
954 stars 511 forks source link

Open plugin page blank using dashboard 3.0.1 #2820

Open jinjianming opened 1 year ago

jinjianming commented 1 year ago

Issue description

Console error

umi.7de77dbe.js:1 TypeError: Cannot read properties of null (reading 'find')
    at cj (p__Plugin__List.86b10e9e.async.js:1:3479849)
    at pa (umi.7de77dbe.js:1:1522498)
    at Dl (umi.7de77dbe.js:1:1569170)
    at Uc (umi.7de77dbe.js:1:1561859)
    at Dc (umi.7de77dbe.js:1:1561784)
    at Cc (umi.7de77dbe.js:1:1558647)
    at umi.7de77dbe.js:1:1509712
    at t.unstable_runWithPriority (umi.7de77dbe.js:1:39456)
    at li (umi.7de77dbe.js:1:1509421)
    at fi (umi.7de77dbe.js:1:1509657)
bl @ umi.7de77dbe.js:1

Is it not compatible with Apisix 3.2.1

Expected behavior

x

How to Reproduce

http://ip:80/plugin/list

Screenshots

image

Environment

Additional context

No response

karl-chanel commented 1 year ago

I experienced the same problem.

zimbres commented 11 months ago

Check if the plugin list is present on configuration

        plugins:
          - api-breaker
          - authz-keycloak
          - basic-auth
          - batch-requests
          - consumer-restriction
          - cors
          # - dubbo-proxy
          - echo
          # - error-log-logger
          # - example-plugin
          - fault-injection
          - grpc-transcode
          - hmac-auth
          - http-logger
          - ip-restriction
          - jwt-auth
          - kafka-logger
          - key-auth
          - limit-conn
          - limit-count
          - limit-req
          # - log-rotate
          # - node-status
          - openid-connect
          - prometheus
          - proxy-cache
          - proxy-mirror
          - proxy-rewrite
          - redirect
          - referer-restriction
          - request-id
          - request-validation
          - response-rewrite
          - serverless-post-function
          - serverless-pre-function
          # - skywalking
          - sls-logger
          - syslog
          - tcp-logger
          - udp-logger
          - uri-blocker
          - wolf-rbac
          - zipkin
          - server-info
          - traffic-split
jinjianming commented 10 months ago

After adding, it cannot be fixed,

jinjianming commented 10 months ago

image

    plugins:    # plugin list
      - api-breaker
      - authz-casbin
      - authz-casdoor
      - authz-keycloak
      - aws-lambda
      - azure-functions
      - basic-auth
      - clickhouse-logger
      - client-control
      - consumer-restriction
      - cors
      - csrf
      - datadog
      - echo
      - error-log-logger
      - 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
      - mocking
      - 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
    plugin_attr:
      log-rotate:
        enable_compression: false
        max_kept: 3
        max_size: 10240
      prometheus:
        export_addr:
          ip: 0.0.0.0
cdmonkey commented 6 months ago

I experienced the same problem.

BansheeLW commented 6 months ago

I experienced the same problem. I found that when requesting the interface "http://locathost:port/apisix/admin/plugins?all=true", the returned response data was null, so the page reported an error and displayed a blank page. Why was the interface response data empty?

image image

ps: Chart.yaml apiVersion: v2 appVersion: 3.0.0 description: A Helm chart for Apache APISIX Dashboard name: apisix-dashboard type: application version: 0.8.1

andytael commented 5 months ago

Experienced the same issue, downgrade to 3.0.0 image resolved the issue and APISIX 3.7.0