MirtoBusico opened a new issue, #10014:
URL: https://github.com/apache/apisix/issues/10014

   ### Description
   
   Hi all,
   I'm trying to create a route with the admin API; but I'm stuck with this 
error and I cannot find any related documentation.
   
   Any hint?
   
   
   Here the command that creates the route and the error
   
   ```
   sysop@h2dev:~/H2/h2servcerts$ curl 
http://localhost:8001/api/v1/namespaces/apisix/services/apisix-admin:9180/proxy/apisix/admin/routes/2000
 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "key": "/apisix/routes/2000",
       "value": {
       "host": "h2serv.h.net",
       "plugins": {
           "redirect": {
           "http_to_https": true
           }
       },
       "desc": "h2serv.h.net primary route",
       "status": 1,
       "name": "h2serv",
       "id": "2000",
       "uri": "/*",
       "upstream_id": "2000",
       "methods": [
           "GET",
           "POST",
           "PUT",
           "DELETE",
           "PATCH",
           "HEAD",
           "OPTIONS",
           "CONNECT",
           "TRACE",
           "PURGE"
       ]
       }
   }' | jq
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                    Dload  Upload   Total   Spent    Left  Speed
   100   615    0   108  100   507   5987  28108 --:--:-- --:--:-- --:--:-- 
34166
   {
     "error_msg": "invalid configuration: allOf 1 failed: value should match 
only one schema, but matches none"
   }
   sysop@h2dev:~/H2/h2servcerts$ 
   ```
   
   
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.4.0
   - Operating system (run `uname -a`): Linux apisix-67f5f65695-dpz4p 
6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.38-2 (2023-07-27) x86_64 
GNU/Linux
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


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