Hello,
When installed on a Windows host and using a channel with http communication, bots generates incorrect URLs. These URLs have backslashes in some of the places where forward slashes are meant to be. The presence of these backslashes is caused by the use of os.path.join in botslib.Uri, which joins URI components with a platform-specific separator. Since the Uri class is only used for HTTP, I propose it be modified to always use the posixpath.join function, which joins components with forward slashes regardless of platform. I'm attaching a patch containing the proposed change.
Unless and until the patch is applied to the official release, this error can be circumvented with a carefully crafted path string that takes advantage of os.path.join.
If, for example, one needs to POST to
This can be achieved by leaving the host and port portions empty and filling path with
//localhost:3000/entity/
Although this is essentially a hack and far from the optimal solution.
Cheers,
Alesssandro Rubino