Why test: is present in listen path regex? Could you please help here understanding this. Thanks in advance. "proxy": { "listen_path": "/v{test:[\d]+}/events/", "strip_listen_path": true }
I am asking internally about this and will return with a proper response. In the meantime, I have experimented with it for a some minutes and I think it’s a group catcher of some kind. I am not too sure but your use case can be achieve with:
Hi Olu…this regex worked but it is flaky. It fails to respond sometimes and give resource not found error once in while when testing through postman. Is that expected? Please let me know
Just confirmed we have a bug where regex listen paths and strip listen paths return inconsistent results. Tyk would still listen on both paths, however, the issue is with sending the data upstream. A workaround would be to use a url-rewrite. Hope this helps.
I don’t recall regex working for target URLs. You can use our URL rewrite for that.
As for the listen_path appended issue, it’s because you have set strip_listen_path to false. You can find more information about proxy settings in our docs.