apisix-dashboard icon indicating copy to clipboard operation
apisix-dashboard copied to clipboard

I have created a new consumer by AdminAPI, but it is not visible in consumers list.

Open iSuperCoder opened this issue 3 years ago • 7 comments

Issue description

Not only CREATE,when I have deleted a consumer, it always exists in consumers list.

Wheather it's AdminAPI or Dashboard, both operation methods have the same problem.

After restarting APISIX Dashboard,consumers list page is correct.

In fact , the created consumer can be used by apisix normally, maybe it's just problem of dashboard.

Expected behavior

1、create consumer: the consumer is visible in the consumers list page. 2、delete consumer: the consumer is not visible in the consumers list page.

How to Reproduce

  1. Go to Consumer page of APISIXDashboard.
  2. Create/delete a consumer.

But, this phenomenon does not occur every time.

Screenshots

No response

Environment

  • apisix version (cmd: apisix version): 2.10.0
  • OS (cmd: uname -a):GNU/Linux
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V): openresty/1.19.9.1
  • etcd version, if have (cmd: run etcd --version): 3.4.0
  • apisix-dashboard version, if have: 2.9.0
  • Browser version, if have: Sarari 15.2 (17612.3.6.1.6)

Additional context

No response

iSuperCoder avatar Jan 04 '22 21:01 iSuperCoder

@iSuperCoder Thanks for your report, we will check it latter.

zaunist avatar Jan 05 '22 01:01 zaunist

Hi, @iSuperCoder. Could you please give your dashboard version and apisix version? I can't reproduce your problem in my machine.

zaunist avatar Jan 11 '22 06:01 zaunist

@zaunist I have provided information in issue's Environment.

iSuperCoder avatar Jan 18 '22 06:01 iSuperCoder

@zaunist I have provided information in issue's Environment.

Thanks a lot, I will check it latter.

zaunist avatar Jan 18 '22 06:01 zaunist

I'm sorry, I can't reproduce this problem. I created consumer jack with curl to apisix via terminal, the dashboard behaves normally. And I create consumer n0ne with dashboard, then use curl to get consumer list, every thing is normal. Maybe you can reference this https://github.com/apache/apisix-dashboard/issues/2285

image

zaunist avatar Jan 20 '22 13:01 zaunist

some times I have the similar problem。It looks like the connection with the etcd have make some err, and the dashboard can not get the newst data from the etcd.

xianshun163 avatar Jan 27 '22 02:01 xianshun163

May I ask how many routes are configured in your apisix? I have not been able to reproduce this problem. I wonder if it requires a lot of data to reproduce.

zaunist avatar Jan 27 '22 02:01 zaunist