-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: return protocol error messages for user restrictions #111
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
a794c5e
to
90a4964
Compare
Playwright e2e testsTo view traces locally, unzip the report and run: npx playwright show-report ~/Downloads/playwright-report |
1cb932d
to
3eeda2f
Compare
d8c459c
to
a717c6d
Compare
Quality Gate passedIssues Measures |
} | ||
|
||
throw e; | ||
} |
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.
This is all much neater
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.
Yeah! Much nicer to have it in one place
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.
Looks good - I've not run this to verify, but this all seems much neater
🎉 This PR is included in version 1.7.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description
Our streaming chat protocol allows us to send predefined error and action messages when a user is banned, rate limited, etc. With recent refactors we've lost some of that functionality
Changes:
failureMessage
pattern in chat handler, and throw specific error instances insteadshouldPerformUserLookup
,handleUserLookup
,mockUserId
functionality as it was only used to support testsHow to test
Rate limiting
RATELIMIT_GENERATIONS_PER_24H
in dopplerAccount locking
mod:tox
as the textScreenshots