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

kongfig apply seems to fail when the consumer size is more than 100 #160

Open
takearun opened this issue May 3, 2019 · 0 comments
Open

Comments

@takearun
Copy link

takearun commented May 3, 2019

We have two ways to create entities in Kong (0.11.2)
Kongfig (to create APIs/Consumers) and a custom built API portal to manage consumers.

Now we have defined more than 100 consumers. And we see issues when we run kongfig apply,
this is the exact error message,

 Error: http://blueadmin.mw.prd.ti.com/consumers/bd269c73-81a8-4c42-bc57-e2e436568d93/acls: 500 Internal Server Error
    at /usr/local/lib/node_modules/kongfig/lib/adminApi.js:125:25
    at run (/usr/local/lib/node_modules/kongfig/node_modules/core-js/modules/es6.promise.js:87:22)
    at /usr/local/lib/node_modules/kongfig/node_modules/core-js/modules/es6.promise.js:100:28
    at flush (/usr/local/lib/node_modules/kongfig/node_modules/core-js/modules/_microtask.js:18:9)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

Looking at adminApi.js, it seems to have limits like these,

if (json.data.length < 100) {
            // FIXME an hopeful hack to prevent a loop
            return json.data;
        }

Now I am not sure that's the reason for the issue I am facing.

Can you please help.

Thanks,
Arun

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

No branches or pull requests

1 participant