janiussyafiq commented on issue #13033: URL: https://github.com/apache/apisix/issues/13033#issuecomment-4009229915
@Baoyuantop @rodpinheiro I wasn't able to reproduce the issue, here's my config: ``` curl http://127.0.0.1:9180/apisix/admin/consumers -X PUT \ -H 'X-API-KEY: XXXXX' \ -d '{ "username": "jack", "plugins": { "basic-auth": { "username": "jack", "password": "auth-jack" } } }' curl http://127.0.0.1:9180/apisix/admin/services/s1 -X PUT \ -H 'X-API-KEY: XXXXX' \ -d '{ "upstream": { "type": "roundrobin", "nodes": { "httpbin.org:80": 1 } }, "plugins": { "basic-auth": {} } }' curl http://127.0.0.1:9180/apisix/admin/routes/r1 -X PUT \ -H 'X-API-KEY: XXXXX' \ -d '{ "uri": "/get", "service_id": "s1", "plugins": { "consumer-restriction": { "whitelist": ["jack"] } } }' ``` Then I ran this command: ``` results=$(for i in {1..500}; do curl -s -o /dev/null -w "%{http_code}\n" -u jack:auth-jack http://127.0.0.1:9080/get done) echo "--- Results Summary ---" echo "Total 200 OK: $(echo "$results" | grep -c "200")" echo "Total 404 Not Found: $(echo "$results" | grep -c "404")" echo "Other status codes: $(echo "$results" | grep -vE "200|404" | wc -l | xargs)" ``` Here's the result I got: ``` --- Results Summary --- Total 200 OK: 500 Total 404 Not Found: 0 Other status codes: 0 ``` We might need more info on this to proceed or if there's anything wrong with my setup pls lmk. -- 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]
