JohnnyQianP commented on issue #6936:
URL: https://github.com/apache/apisix/issues/6936#issuecomment-1110629437

   > > > @leslie-tsang, pls help to check.
   > > > @JohnnyQianP, and pls check your `config.yaml`, if overwrite the 
`plugins` list
   > > 
   > > 
   > > I can see the "plugins" node in config.yaml 
![image](https://user-images.githubusercontent.com/14548092/165432673-19feba3f-771a-4e02-af87-e50df5216219.png)
 What can I do next?
   > 
   > Please check if `public-api` in your plugin list. :)
   
   I changed the config.yaml, added the 'public-api' plugin, and re-deployed 
the apisix.
   
![image](https://user-images.githubusercontent.com/14548092/165461900-7d208d8a-ea9b-431c-a972-d81a4fd8ce83.png)
   
   In the node : same issue below, 
   ```
   # curl -X PUT 'http://192.168.126.100:32253/apisix/admin/routes/r1' -H 
'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -d '{ 
"uri":"/apisix/plugin/jwt/sign", "plugins":{ "public-api": {} } }'
   <html>
   <head><title>403 Forbidden</title></head>
   <body>
   <center><h1>403 Forbidden</h1></center>
   <hr><center>openresty</center>
   </body>
   </html>
   ```
   In container, new issue:
   ```
   # curl -X PUT 'http://localhost:9180/apisix/admin/routes/r1' -H 'X-API-KEY: 
edd1c9f034335f136f87
   ad84b625c8f1' -d '{ "uri":"/apisix/plugin/jwt/sign", "plugins":{ 
"public-api": {} } }'
   {"error_msg":"has no healthy etcd endpoint available"}
   ```
   Etcd pods are running, Is this etcd dns problem?
   
![image](https://user-images.githubusercontent.com/14548092/165460673-31562bcc-cd58-4298-9186-4ce6634b799c.png)
   


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