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 fails when paging required #105

Closed
sebastianrosch opened this issue Dec 4, 2017 · 3 comments · May be fixed by #123
Closed

Kongfig apply fails when paging required #105

sebastianrosch opened this issue Dec 4, 2017 · 3 comments · May be fixed by #123
Labels

Comments

@sebastianrosch
Copy link

I apply my kongfig with the following command:
kongfig apply --path config.yml --https --host my-host/admin --header apikey:some-key

Here is the result:

Loading config config.yml
Apply config to my-host/admin
Kong version: 0.11.1
Error: http://localhost:8001/plugins?offset=EBc4d3Ri50C2sAkYIzguyOQWABRocS1jaGVjay1wZXJtaXNzaW9uc%2FB%2F%2F%2F%2Bb8H%2F%2F%2F%2F4%3D&size=100: 404 Not Found
 Error: http://localhost:8001/plugins?offset=EBc4d3Ri50C2sAkYIzguyOQWABRocS1jaGVjay1wZXJtaXNzaW9uc%2FB%2F%2F%2F%2Bb8H%2F%2F%2F%2F4%3D&size=100: 404 Not Found
    at /usr/local/lib/node_modules/kongfig/lib/adminApi.js:131:25
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

It seems as if kongfig would use localhost:8001 when getting the remaining pages of an endpoint instead of the provided host argument.

@CyExy CyExy added the bug label Dec 4, 2017
@CyExy
Copy link
Contributor

CyExy commented Dec 4, 2017

This is likely to be kong that is returning the wrong URL, I'll have a look.

@CyExy
Copy link
Contributor

CyExy commented Mar 1, 2018

Please could you look at #123 this PR should fix your issue

@sebastianrosch
Copy link
Author

Thanks, my issue has been fixed in the meantime.

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

Successfully merging a pull request may close this issue.

2 participants