You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2019/12/06 09:57:19 UTC

[GitHub] [incubator-apisix] DHB-liuhong opened a new issue #946: It could not add more than one upstreams to a route

DHB-liuhong opened a new issue #946: It could not add more than one upstreams to a route
URL: https://github.com/apache/incubator-apisix/issues/946
 
 
   ### Issue description
   i want add more than one upstreams to a route ,but I find it doesn't work
   
   ### Environment
   [root@lhdev2 routes]# curl -i -X PUT http://10.139.6.35:9080/apisix/admin/routes/00000001 -d '
   > {
   >     "uri": "/*",
   >     "methods": ["PUT", "GET", "POST", "DELETE"],
   >     "upstream_id": ["00000001", "00000002"]
   > }'
   HTTP/1.1 400 Bad Request
   Date: Fri, 06 Dec 2019 09:52:22 GMT
   Content-Type: text/plain
   Transfer-Encoding: chunked
   Connection: keep-alive
   Server: APISIX web server
   
   {"error_msg":"invalid configuration: property \"upstream_id\" validation failed: object matches none of the alternatives"}
   * apisix version (cmd: `apisix version`):
   * OS:
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services