leslie-tsang commented on issue #6206:
URL: https://github.com/apache/apisix/issues/6206#issuecomment-1022483263


   Hello there, The `host` match pattern for the APISIX `v2.11` `nacos` plugin 
is `^http(s)?:\/\/[a-zA-Z0-9-_.:\@%]+$`
   Refer to 
[nacos.lua](https://github.com/apache/apisix/blob/release%2F2.11/apisix/discovery/nacos.lua#L47),
 the error may caused by 
[jsonschema](https://github.com/api7/jsonschema/blob/d6a0155586eead4db99f82f399ac56c4e614b130/lib/jsonschema.lua#L944-L948).
   > jsonschema will generate a dynamic code 
   ```lua
   retrun false, string.format([[failed to match pattern 
"^http(s)?:\\/\\/[a-zA-Z0-9-_.:\\@%]+$" with %q]], 
"http://nacos:NOK1&;(&*!#[email protected]:8848")
   ```
   I don't know if I'm wrong. also cc @spacewander 
   


-- 
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]


Reply via email to