-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Endpoints urls with slash #3824
Conversation
"target server supports trailing slashes for this " | ||
"endpoint.".format(base) | ||
) | ||
return base | ||
|
||
url = base | ||
if not base.endswith("/"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wochinge I'm not exactly sure what's going on here -- above, we throw a debug message(and previously stripped the slash) if there was one, and then below we add one back on?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided against, cause if subpath
values are added by Rasa code (and not externally) and we should know what we are doing and if we add a slash or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah okay I got it, I was confused bc i was missing that these were 2 cases with and w/o subpath
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understand now, looks good 👍
"target server supports trailing slashes for this " | ||
"endpoint.".format(base) | ||
) | ||
return base | ||
|
||
url = base | ||
if not base.endswith("/"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah okay I got it, I was confused bc i was missing that these were 2 cases with and w/o subpath
Still doesnt solve the 404 issue. Please help |
@Wing-e7 please open a bug report with full information and ideally reproducible behavior if you think there is still a bug! |
Proposed changes:
Status (please check what you already did):
black
(please check Readme for instructions)