Skip to content

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

@takearun

Description

@takearun

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions