Skip to content
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

Don't append messages if the status code is not 200 #994

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

SmittieC
Copy link
Collaborator

Description

This should solve the issue where the following screen shows up when chatting to a bot:

image

I suspect that this line is the offending one. I could only replicate this issue locally by manually raising Http404, but am not entirely sure why this would 404 for a perfectly valid chat. Either way, handling non 200 status codes is a good practice

User Impact

Hopefully they should not see those "Shucks" screens

Demo

N/A

Docs

N/A

@SmittieC SmittieC merged commit 12cbe2a into main Dec 16, 2024
7 checks passed
@SmittieC SmittieC deleted the cs/handle_polling_errors branch December 16, 2024 07:01
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Additional details and impacted files

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants