Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Method Not Allowed when trying to fetch upstreams active targets #89

Closed
PapyKahan opened this issue Aug 23, 2017 · 4 comments
Closed

Method Not Allowed when trying to fetch upstreams active targets #89

PapyKahan opened this issue Aug 23, 2017 · 4 comments

Comments

@PapyKahan
Copy link

With the latest konga 0.83 version with kong 0.11 api integration

When i want to edit an upstream i have the following error message : Method Not Allowed with the following request

The method not allowed comes from this endpoint :

http://kong:8001/upstreams/844c8956-dd38-40a4-979c-21d8582d5a78/targets/active

Doen't work :

curl http://kong:8001/upstreams/844c8956-dd38-40a4-979c-21d8582d5a78/targets/active -X GET

After some investigation you should add a / at the end of your request like this :

http://kong:8001/upstreams/844c8956-dd38-40a4-979c-21d8582d5a78/targets/active/

Works :

curl http://kong:8001/upstreams/844c8956-dd38-40a4-979c-21d8582d5a78/targets/active/ -X GET

I've not checked if there are other errors like this one.

Have a nice day.

@PapyKahan PapyKahan changed the title Method Not Allowed Method Not Allowed when trying to fetch upstreams active targets Aug 23, 2017
@pantsel
Copy link
Owner

pantsel commented Aug 23, 2017

Hi, @cfajardo ,
According to Kong's docs,
the endpoint is

GET: /upstreams/{name or id}/targets/active
without the trailing slash.

Konga complies with the documentation so, it seems that this is an issue to be raised at Kong's repo, not here.
It's probably a bug which they will likely be fixing, so in my opinion we should wait and see.

Cheers.

@PapyKahan
Copy link
Author

You're absolutely right. This issue has already been reported and merged 4 month ago. This is a regression.

@PapyKahan
Copy link
Author

I've reported the issue : Kong/kong#2840

@pantsel
Copy link
Owner

pantsel commented Sep 15, 2017

Closing this issue because apparently it has been addressed by Mashape.

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

No branches or pull requests

2 participants