Sn0rt commented on issue #9587:
URL: https://github.com/apache/apisix/issues/9587#issuecomment-1647543567

   have you try `PUT` twice ?
   
   ```
   curl -X DELETE http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1'
   {"key":"/apisix/routes/1","deleted":"1"}
   
   curl -X GET http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' | jq
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                    Dload  Upload   Total   Spent    Left  Speed
   100    28    0    28    0     0   6782      0 --:--:-- --:--:-- --:--:-- 
28000
   {
     "message": "Key not found"
   }
   
   curl http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d 
@/Users/guohao/workspace/router/syslog.json
   
{"key":"/apisix/routes/1","value":{"id":"1","uri":"/get","create_time":1690190646,"priority":0,"plugins":{"syslog":{"buffer_duration":60,"batch_max_size":1000,"include_req_body":false,"host":"192.168.31.224","timeout":3000,"max_retry_count":0,"flush_limit":1,"name":"sys
 
logger","sock_type":"tcp","tls":false,"drop_limit":1048576,"inactive_timeout":5,"pool_size":5,"port":514,"retry_delay":1}},"update_time":1690190646,"status":1,"upstream":{"scheme":"http","type":"roundrobin","hash_on":"vars","pass_host":"pass","nodes":{"httpbin.org":1}}}}
   
   curl http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d 
@/Users/guohao/workspace/router/syslog.json
   
{"key":"/apisix/routes/1","value":{"id":"1","uri":"/get","create_time":1690190646,"priority":0,"plugins":{"syslog":{"timeout":3000,"max_retry_count":0,"retry_delay":1,"host":"192.168.31.224","flush_limit":1,"drop_limit":1048576,"sock_type":"tcp","name":"sys
 
logger","buffer_duration":60,"tls":false,"include_req_body":false,"inactive_timeout":5,"pool_size":5,"port":514,"batch_max_size":1000}},"update_time":1690190648,"status":1,"upstream":{"scheme":"http","type":"roundrobin","hash_on":"vars","pass_host":"pass","nodes":{"httpbin.org":1}}}}
   ```


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