-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error handling (HTTP + Bridge events) (#156)
* Parse checkout bridge error * Ignore unsupported errors * Improve existing tests, add more * Bump schema version to 8.1 * Add support for 403 forbidden error * Add storefrontConfigurationError * Add error handling guidance to README * Add test for storefrontConfigurationError * Add tests for 403, 404 * Trigger checkoutUnavailable for storefrontConfigurationError * Update README * Group 400 and 500 errors differently * Expose error code and httpStatusCode on `.checkoutUnavailable` error (#161) * Expose code and httpStatusCode on checkoutUnavailable error * Check reason header for liquid not supported error * X-Shopify-API-Deprecated-Reason header * Refactor implementation to annotate recoverable * Update samples to conform * Add recoverable property to CheckoutError types * Remove redundant cache deletion * Add codes to error messages, replace checkoutLiquidNotMigrated with configurationError * Remove readme changes
- Loading branch information
Showing
11 changed files
with
451 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.