-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
bugSomething isn't workingSomething isn't workingcheckingcheck first if this issue occurredcheck first if this issue occurred
Description
Issue description
When using special characters in nacos password in config.yaml following the document from https://apisix.apache.org/docs/apisix/discovery/nacos.
At starting time the json schema validator report error and apisix start failure
Environment
- apisix version (cmd:
apisix version): 2.11.0 - OS (cmd:
uname -a): macOS Big Sur 11.3.1
Steps to reproduce
1、Config following yaml fragment in config.yaml
discovery:
nacos:
host:
- "http://nacos:NOK1&(&*!#3@127.0.0.1:8848"2、Start apisix
Actual result
apisix start failure and report error
Error log
2022/01/26 11:02:52 [error] 15735#7581333: init_worker_by_lua error: [string "jsonschema:anonymous"]:43: invalid option '%]' to 'format'
stack traceback:
[C]: in function 'string_format'
[string "jsonschema:anonymous"]:43: in function 'var_0_4'
[string "jsonschema:anonymous"]:60: in function 'var_0_3'
[string "jsonschema:anonymous"]:211: in function 'check'
.../apisix-2.11.0/apisix/discovery/nacos.lua:382: in function 'init_worker'
.../apisix-2.11.0/apisix/discovery/init.lua:35: in function 'init_worker'
.../gts-apigw/apisix-2.11.0/apisix/init.lua:109: in function 'http_init_worker'
init_worker_by_lua:2: in main chunk
Expected result
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcheckingcheck first if this issue occurredcheck first if this issue occurred