-
Notifications
You must be signed in to change notification settings - Fork 75
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 command uses default localhost instead of host parameter value #118
Comments
After some investigation, we figured out that this is a pagination issue. When Kongfig runs an apply, it will also make a GET request to We've unsuccessfully tried a number of ways to preserve the scheme, hostname, and path in the next token; at this point, we would like to make the pagination limit configurable in this line of code. @CyExy, is this a change you'd be willing to accept a pull request for? |
Sorry, it took so long to get back to you; I think we should be able to fix the issue by overriding the host for the next link when |
@theoskolnik please could you test this PR #123 Thanks |
When trying to apply kongfig to an API in Kong, the apply command explicitly sets a host parameter; however, the error shows a request being made to
http://localhost:8001
. Seems like the host is getting lost somewhere.The kongfig.yml:
kongfig --version: 1.3.0
npm --version: 4.0.5
The error is coming from
node-fetch
, a transitive dependency of kongfig'sisomorphic-fetch
; however I'm not sure if the host is getting set to localhost even before it reaches that call.The text was updated successfully, but these errors were encountered: