Charckle opened a new issue, #2855:
URL: https://github.com/apache/apisix-dashboard/issues/2855
### Current Behavior
When adding some plugins, expl: elasticsearch in the global rules, or
key-auth and others when creating a consumer, Dashboard is unable to add them,
due to a javascript error: Uncaught (in promise) Error: strict mode: unknown
keyword: "encrypt_fields"
There is no problem adding plugins via http requests.
### Expected Behavior
Dashboard should execute the command and activate the plugin, prompting the
user that "Configure Plugin Successfully"
### Error Logs
p__Plugin__List.86b10e9e.async.js:1 Uncaught (in promise) Error: strict
mode: unknown keyword: "encrypt_fields"
at Object.ce [as checkStrictMode]
(p__Plugin__List.86b10e9e.async.js:1:1112851)
at Object.O [as checkUnknownRules]
(p__Plugin__List.86b10e9e.async.js:1:1408625)
at ee (p__Plugin__List.86b10e9e.async.js:1:1111250)
at Object.z [as validateFunctionCode]
(p__Plugin__List.86b10e9e.async.js:1:1109032)
at n.v (p__Plugin__List.86b10e9e.async.js:1:1912128)
at n.value (p__Plugin__List.86b10e9e.async.js:1:4559499)
at n.value (p__Plugin__List.86b10e9e.async.js:1:4551822)
at p__Plugin__List.86b10e9e.async.js:1:3484393
at new Promise (<anonymous>)
at p__Plugin__List.86b10e9e.async.js:1:3484139
### Steps to Reproduce
1. Run Apisix via docker
2. Add a consumer
3. Enable "key-auth" on the consumer
### Environment
- APISIX version: 3.4.0
- APISIX Dashboard version: 3.0.1
- APISIX Dashboard image: apache/apisix-dashboard:3.0.1-alpine
--
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]