Closed mobiware closed 3 months ago
So we've debugged a little bit and we found out that the URL that gets passed to decodeURIComponent
is:
https://res.cloudinary.com/darwin-homes/image/authenticated/v1/sandbox/Ewmtbp/7781%
which is not the original URL (it's truncated). The fact that the URL is ending with %
is what makes it malformed.
Looking at the D0
function that calls decodeURIComponent
, it looks like it corresponds to the new asSafeURL
function
It also seems like this function is being called as part of some Regexp manipulation of the URL, so perhaps there's a bug in the Regexp ?
Thanks for letting me know. I'll fix this.
@bang9 any ETA for a new version of the SDK including this fix ?
Hello @mobiware It has been released in v1.7.4 now!
@bang9 awesome, thanks!
Since we've upgraded to version
1.7.3
of the SDK, we're running into an issue that we didn't experience with version1.6.1
We have a function call that returns a URL, and this URL is included by the chatbot into its response to the user as follows (this is only an excerpt from the full message showing the Markdown-formatted URL)
As soon as the chatbot displays this part of the message, it crashes and the whole page with it (whole page gets blank).
The exception that can be seen in the console is: