Skip to content
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

error when apply is called second time if it was interrupted initially #59

Closed
iamveritas opened this issue Jan 11, 2017 · 2 comments
Closed
Labels

Comments

@iamveritas
Copy link

I issued an apply and it was interrupted cause I forgot to issue it in background and my session died.
when I re-issued the same command it failed -- see the error below;
background: the configuration has a lot of consumers, all the config settings were applied when the first apply was running except the creation of consumers; so when I re-issued the command I expected either to fail when trying to re-create an already existing consumer or just skip the consumer if it was already created; in the error I see it is not able to handle the acl groups...? anyway, maybe it is a known issue, I think it would be nice to be fixed. thank you!

POST 400 http://kong:8001/consumers/2b5fff0a-dd19-1d35-a2e1-0a228e4959ec/acls
{ group: 'GROUP_NAME'}
Error: Bad Request
{"group":"ACL group already exist for this consumer"}

Error: Bad Request
{"group":"ACL group already exist for this consumer"}

at /usr/local/lib/node_modules/kongfig/lib/core.js:152:43
at run (/usr/local/lib/node_modules/kongfig/node_modules/babel-polyfill/node_modules/core-js/modules/es6.promise.js:87:22)
at /usr/local/lib/node_modules/kongfig/node_modules/babel-polyfill/node_modules/core-js/modules/es6.promise.js:100:28
at flush (/usr/local/lib/node_modules/kongfig/node_modules/babel-polyfill/node_modules/core-js/modules/_microtask.js:18:9)
at process._tickCallback (node.js:415:13)
@CyExy
Copy link
Contributor

CyExy commented Jan 11, 2017

I have an idea what could be the issue, let me have a look.

@CyExy CyExy added the bug label Jan 11, 2017
@CyExy CyExy closed this as completed in 0f08cdc Jan 11, 2017
@CyExy
Copy link
Contributor

CyExy commented Jan 11, 2017

kongfig@1.2.24 fixes this issue, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants