itw-hewb commented on issue #4648:
URL: https://github.com/apache/apisix/issues/4648#issuecomment-884623088


   > 在`Server`并不表示它是APISIX 2.6。
   > 你能提供一个纯文本的错误报告吗?
   这是我的版本apisix version
   /usr/local/openresty/luajit/bin/luajit 
/usr/local/apisix/apisix/cli/apisix.lua version
   2.6
   这是错误信息
   
   curl http://127.0.0.1:9080/apisix/admin/routes -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X POST -i -d '
    {
        "uri": "/testNacos/*",
        "name": "testNacos",
        "upstream": {
            "service_name": "APISIX-NACOS",
            "type": "roundrobin",
            "discovery_type": "nacos"
       }
    }'
   HTTP/1.1 400 Bad Request
   Date: Thu, 22 Jul 2021 02:53:04 GMT
   Content-Type: text/plain
   Transfer-Encoding: chunked
   Connection: keep-alive
   Access-Control-Allow-Origin: *
   Access-Control-Allow-Credentials: true
   Access-Control-Expose-Headers: *
   Access-Control-Max-Age: 3600
   Server: APISIX web server
   
   {"error_msg":"invalid configuration: property \"upstream\" validation 
failed: additional properties forbidden, found service_name"}
   


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