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 2021/09/07 09:21:18 UTC

[GitHub] [apisix] ztgoto commented on issue #5005: admin api request unauthorized(4107)

ztgoto commented on issue #5005:
URL: https://github.com/apache/apisix/issues/5005#issuecomment-914140676


   > It seems like that you don't use the correct port. the default port is 9080 if you have not set the port in the `config.yml`
   > 
   > maybe you can try
   > 
   > ```shell
   > curl -XPUT -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' 'http://127.0.0.1:9080/apisix/admin/routes/1' -d '{
   >     "uri": "/baseauth/*",
   >     "upstream": {
   >         "service_name": "baseauth",
   >         "type": "roundrobin",
   >         "discovery_type": "nacos",
   >         "discovery_args": {
   >           "namespace_id": "3072804a-e201-4867-a10a-a5fbf2eba3c7",
   >           "group_name": "DEFAULT"
   >         }
   >     }
   > }'
   > ```
   
   Yes, Thanks!


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org