janus icon indicating copy to clipboard operation
janus copied to clipboard

Parameter does not be replaced in the url

Open m3ngyang opened this issue 6 years ago • 3 comments

Hi, I had a taste for Janus, and the config is

{
    "name" : "usergroups",
    "active" : true,
    "proxy" : {
        "listen_path" : "/v1/usergroups/{groupId:[\\da-f]{24}}",
        "upstreams" : {
            "balancing": "roundrobin",
            "targets": [
                {"target": "http://service:8080/v1/usergroups/{groupId}"}
            ]
        },
        "methods" : ["GET"]
    }
}

but I got

{
    "code": 400,
    "msg": "resourcequotas \"{groupId}\" not found",
    "data": null
}

It seems that parameter does not be replaced in the target usl?

m3ngyang avatar Mar 04 '18 03:03 m3ngyang

@italolelis can you answer my question?

m3ngyang avatar Mar 04 '18 05:03 m3ngyang

It seems the problem of demo docker image, when I use released binary file, it works well.

m3ngyang avatar Mar 04 '18 06:03 m3ngyang

@m3ngyang we've updated the docker image to the latest version. There was a problem with it and now should be ok. Would you mind testing it again?

italolelis avatar Mar 09 '18 11:03 italolelis