Removing trailing slash results in weird behavior #3776
Labels
area:rasa-oss 🎡
Anything related to the open source Rasa framework
type:bug 🐛
Inconsistencies or issues which will cause an issue or problem for users or implementors.
Description of Problem:
That change 7fbc08b#diff-c66e6bc1dfd15c342f53b163376f7270R48 results in weird behavior. If I define an url in endpoints.yml (for example the nlg endpoint) which is required to end with a slash, the slash is removed and a request without a slash is sent. This shouldn't be a problem as my nlg server redirects this request to the path with a slash. However, the library aiohttp which is used to request has the following behavior aio-libs/aiohttp#3082. It will change the method from POST to GET after a redirect. This results in a "405 Method not allowed".
Overview of the Solution:
Of course, I can adapt my nlg server to not redirect and directly take the path without slash but it is still not right in my opinion to change the urls which are defined in some config files. I'd rather have the obvious behavior and requests to the urls I defined.
Definition of Done:
return base.rstrip("/")
-->return base
The text was updated successfully, but these errors were encountered: