kayx23 commented on issue #10100:
URL: https://github.com/apache/apisix/issues/10100#issuecomment-1696655258

   If I configure the consumer group explicitly in both places, there's no 
error. 
   
   This seems to be a bug however, at least not consistent with what the 
[doc](https://apisix.apache.org/docs/apisix/next/terminology/consumer-group/#example)
 implies. I tried to use the variable `$consumer_group_id` in `proxy-rewrite` 
to log the consumer group info, such as the below:
   
   ```
   curl "http://127.0.0.1:9180/apisix/admin/consumer_groups"; -X PUT -d '
   {
     "id": "basic_plan",
     "plugins": {
       "limit-count": {
         "count": 20,
         "time_window": 30,
         "group": "basic_plan",
         "rejected_code": 429
       },
       "proxy-rewrite":{
         "headers":{
           "set":{
             "X-Consumer-Group-ID":"$consumer_group_id"
           }
         }
       }
     }
   }'
   ```
   
   and it works just fine
   
   
![image](https://github.com/apache/apisix/assets/39619599/37b849eb-b695-4327-b107-e18dd4854430)
   


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