-
Notifications
You must be signed in to change notification settings - Fork 739
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
Welcome message on_chat_start not appearing in UI #895
Comments
Hi @JamesLloydPartingtonSerendipityai can you share a screenshot of the error message? |
Hi @constantinidan no errors appear on the UI, console or backend. Also noticed the settings do not appear when this happens. We configure the settings in |
Hi, it might be linked to an Azure issue: microsoft/azure-container-apps#812. |
Hi @tpatel , If that was the issue, then downgrading to a different version of Chainlit would not have fixed the issue, also why would this only occur in Safari? (Using AWS btw) |
Hi guys, just to report that @JamesLloydPartingtonSerendipityai and I tracked this down and managed to workaround it, so I thought you would like to hear the details @tpatel @willydouhard @constantinidan. First, the facts:
Next, we went through all the commits in that chainlit release and unfortunately it was quite a big one. We identified a few candidates and then tried a few hypothesis. We noticed you did something with gzipmiddleware in that release and so we tried disabling it, just after importing chainlit in the startup sequence, like this:
This immediately made it work, on both Mac Safari and iPhone Safari. We don't really understand the details here, but maybe this gives you some clues as to what is going on here - or may help others in the same situation! Wondering if this could be added as an optional configuration to allow us to take this hack out! Does the above help shed any light on why this might be happening? |
Thanks a lot @jimmarshall87 @JamesLloydPartingtonSerendipityai We'll take a look today or tomorrow! |
Describe the bug
When using Safari (even on private window), when sending a message in the
on_chat_start
callback the message frequently does not appear (over 90% of the time). Works fine in Chrome. Messages sent in theon_message
work fine too.Issue started occurring when we updated from Chainlit 1.0.301 to Chainlit 1.0.502, downgrading fixed the issue.
This issue does not happen when running locally, but does happen when deployed on Kubernetes.
Desktop:
The text was updated successfully, but these errors were encountered: