-
Notifications
You must be signed in to change notification settings - Fork 542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After create a consumer on dashboard, apisix throw a exception #856
Comments
hi, |
Hi, I think it's because Apisix-dashboard had written consumer data with id field into etcd. @cleverpig you can have a try on the v2.0 branch. |
@idbeta pls confirm this issue, it seems to be a bug |
Please use the latest master codes, it's 2.1 now. |
I used the latest version.
|
|
@cleverpig |
@spacewander Just to make sure, this PR will fix this issue? |
Yes |
sorry, 2.1 version environment did not reproduce this problem. |
fixed in APISIX already. @cleverpig you can make a try with this commit or the latest version of APISIX. |
@membphis
It's the output from git log:
|
@spacewander Do you have any suggestion? |
If I use curl script to access JWT authed page following the guide (https://github.com/apache/apisix/blob/master/doc/plugins/jwt-auth.md),
This is backend output:
|
Can't reproduce at my side with commit f4161d39a495879edffbc75e2099f6e487bae81d. |
Please run |
It may be the default value from json schema problem |
my route configuration :
|
@nic-chen |
field it's for consumer not route. |
Please run etcdctl --endpoints=$your_server get /apisix/consumer --prefix to get your consumer configuration and paste them here. Thanks. |
@cleverpig you can make a try with the latest https://github.com/apache/apisix/tree/v2.1 I think this issue should have been fixed in APISIX |
Can't reproduce at my side, please make sure you are running the new code. Thanks. @cleverpig |
close it according we have test case for it: feel free to reopen this issue if need. |
ok, I ran "etcdctl --endpoints=IP:port get /apisix/consumer --prefix", and got these:
|
Sorry,it still...I updated apisix and dashboard. |
@idbeta please confirm if you can reproduce this error |
If you are convenient, please contact my QQ thanks. |
ok |
haha, we found tow little bugs! Thanks @nic-chen 1.Route: remote address is required, it must input. 2.Consumer: JWT secret is required, it must input. |
Thanks for feedback. @cleverpig |
there are two bugs:
|
When the user not filled, should no field BTW, I think
this depends on APISIX, we can fix this bug at |
APISIX fixed this by addon code,not schema |
manager-api should keep the same way ^_^ |
OK |
close this issue now. |
Bug report
After create a consumer on dashboard with this config.
{"algorithm":"HS256","base64_secret":false,"exp":86400,"key":"123"}
then Apisix throws exception:
2020/11/23 18:20:25 [error] 3694#3694: *40311 [lua] config_etcd.lua:483: failed to fetch data from etcd: failed to check item data of [/apisix/consumers] err:additional properties forbidden, found id, etcd key: /apisix/consumers, context: ngx.timer
And if deleted this consumer, exception will disappear.
How to Reproduce
System information
Screensnap
The text was updated successfully, but these errors were encountered: