Discussions
Agents chat problem
I sent a question, but the onmessage method returned it
There is a problem with the event.data parameter decodeURIComponent. There will be an error when there are too many words, but there is no problem when there are too few words. I suspect it is caused by the lack of return value of the interface
Hello there,
Thank you for reaching out with your concern.
If I understand correctly, you're experiencing an issue with the onmessage
method returning the same question you asked, and you suspect it's related to the decodeURIComponent
function. However, I'm not entirely sure how the onmessage
function could return the same question you asked. Could you please provide a screenshot or more details about the specific problem you're encountering?
I want to clarify that the demo repository you're referring to is primarily intended for demonstration purposes and may not be fully optimized for production use. It's possible that certain functionalities or error handling mechanisms are not fully implemented in the demo code.
Please provide more details or screenshots of the issue you're facing so that we can better understand and assist you in resolving it.
Thank you for your understanding.
Best regards,
Akash Nithish, D-ID Tech Support Team.