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

dump error with kong 0.12.1 #120

Closed
wjeanneau opened this issue Feb 28, 2018 · 2 comments
Closed

dump error with kong 0.12.1 #120

wjeanneau opened this issue Feb 28, 2018 · 2 comments

Comments

@wjeanneau
Copy link

Is this a BUG REPORT or FEATURE REQUEST?
BUG REPORT

Version of kong and kongfig:
kong: 0.12.1
kongfig: 1.4.2

What happened:
The dump command seems to be broken with those versions.

# kongfig dump --host localhost:8001 Error: http://localhost:8001/upstreams/74d6359b-ed58-4198-9e1b-a441341948c2/targets/active/: 405 Not Allowed Error: http://localhost:8001/upstreams/74d6359b-ed58-4198-9e1b-a441341948c2/targets/active/: 405 Not Allowed at /usr/lib/node_modules/kongfig/lib/adminApi.js:133:25 at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7)

Anything else we need to know:
It looks like version greater than 0.12.0 are supported, but according to the error I got, it appears that the program is sill using the function fetchTargetsV11Active

const upstreamsWithTargets = await fetchUpstreamsWithTargets({ version, fetchUpstreams, fetchTargets: semVer.gte(version, '0.12.0') ? fetchTargets : fetchTargetsV11Active });

@CyExy
Copy link
Contributor

CyExy commented Feb 28, 2018

[email protected] should fix this issue

@wjeanneau
Copy link
Author

My tests are passing. I'll let you know if i see something else.
Thank you for your work !

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

2 participants