-
Notifications
You must be signed in to change notification settings - Fork 540
[SDK] Improve quote error handling #7147
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: d37f7cc The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughA new changeset file was added to document a patch update for the "thirdweb" package, specifically addressing better error handling for quote-related errors. The Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant UI
participant getErrorMessage
participant ApiError
User->>UI: Triggers action that may cause an error
UI->>getErrorMessage: Passes error object
getErrorMessage->>ApiError: Checks if error is ApiError and code
alt code == "INTERNAL_SERVER_ERROR"
getErrorMessage-->>UI: Returns UiError with code "INTERNAL_SERVER_ERROR"
else other error
getErrorMessage-->>UI: Returns UiError with code "UNABLE_TO_GET_PRICE_QUOTE"
end
UI-->>User: Displays error message
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (8)
🔇 Additional comments (4)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #7147 +/- ##
==========================================
- Coverage 55.61% 55.59% -0.02%
==========================================
Files 903 903
Lines 58236 58232 -4
Branches 4100 4097 -3
==========================================
- Hits 32387 32375 -12
- Misses 25744 25754 +10
+ Partials 105 103 -2
🚀 New features to boost your workflow:
|
PR-Codex overview
This PR focuses on improving error handling in the
thirdweb
package by introducing a new error type and updating the error message function to accommodate it.Detailed summary
"INTERNAL_SERVER_ERROR"
to the error types inErrors.ts
.getErrorMessage
inerrors.ts
to handle"INTERNAL_SERVER_ERROR"
with a specific message."MINIMUM_PURCHASE_AMOUNT"
.Summary by CodeRabbit
Bug Fixes
Chores