[PR #67] [MERGED] Add network/server related error codes to isNetworkError getter, add isPermissionError #57

Closed
opened 2026-05-23 08:35:34 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/appy-one/acebase-client/pull/67
Author: @appy-one
Created: 3/27/2025
Status: Merged
Merged: 3/28/2025
Merged by: @appy-one

Base: masterHead: improvement/handle-network-related-errors


📝 Commits (3)

  • d0dd6cd Add network/server related error codes to isNetworkError getter, add isPermissionError
  • 4ee1d54 Include response.statusCode in isNetworkError check
  • cb01191 Let isPermissionError also check response.statusCode

📊 Changes

1 file changed (+14 additions, -9 deletions)

View changed files

📝 src/request/error.ts (+14 -9)

📄 Description

This causes the client to store a pending mutation to the cache database if it possible to retry the operation because of network issues and/or temporary server processing errors. This also allows other code to decide if a mutation should be rolled back or not.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/appy-one/acebase-client/pull/67 **Author:** [@appy-one](https://github.com/appy-one) **Created:** 3/27/2025 **Status:** ✅ Merged **Merged:** 3/28/2025 **Merged by:** [@appy-one](https://github.com/appy-one) **Base:** `master` ← **Head:** `improvement/handle-network-related-errors` --- ### 📝 Commits (3) - [`d0dd6cd`](https://github.com/appy-one/acebase-client/commit/d0dd6cd8b6c0d2dee8934751fb1189c7ffd75e43) Add network/server related error codes to `isNetworkError` getter, add `isPermissionError` - [`4ee1d54`](https://github.com/appy-one/acebase-client/commit/4ee1d546e3556131c622f4246c15a983039dc5db) Include `response.statusCode` in `isNetworkError` check - [`cb01191`](https://github.com/appy-one/acebase-client/commit/cb0119141383548f1a195c875c033553154810b8) Let `isPermissionError` also check `response.statusCode` ### 📊 Changes **1 file changed** (+14 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `src/request/error.ts` (+14 -9) </details> ### 📄 Description This causes the client to store a pending mutation to the cache database if it possible to retry the operation because of network issues and/or temporary server processing errors. This also allows other code to decide if a mutation should be rolled back or not. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-23 08:35:35 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/acebase-client#57
No description provided.