[PR #271] [MERGED] Fix: suppress unhandled promise rejections and PromiseRejectionHandledWarning #201

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

📋 Pull Request Information

Original PR: https://github.com/appy-one/acebase/pull/271
Author: @appy-one
Created: 4/14/2026
Status: Merged
Merged: 4/15/2026
Merged by: @appy-one

Base: masterHead: fix/unhandled-promise-rejections


📝 Commits (1)

  • 00e647f Fix: suppress unhandled promise rejections and PromiseRejectionHandledWarning

📊 Changes

2 files changed (+6 additions, -1 deletions)

View changed files

📝 src/node-cache.ts (+2 -1)
📝 src/storage/binary/index.ts (+4 -0)

📄 Description

This fixes Node.js logging lines such as: "(node:211543) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: xxxxx)" because catch handlers have been added too late to notice. These errors occur on transactions that run too long, canceling read/write locks on child nodes (causing the rejections).


🔄 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/pull/271 **Author:** [@appy-one](https://github.com/appy-one) **Created:** 4/14/2026 **Status:** ✅ Merged **Merged:** 4/15/2026 **Merged by:** [@appy-one](https://github.com/appy-one) **Base:** `master` ← **Head:** `fix/unhandled-promise-rejections` --- ### 📝 Commits (1) - [`00e647f`](https://github.com/appy-one/acebase/commit/00e647f70568647833fb4d7e2bea7faa6183bc2c) Fix: suppress unhandled promise rejections and PromiseRejectionHandledWarning ### 📊 Changes **2 files changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/node-cache.ts` (+2 -1) 📝 `src/storage/binary/index.ts` (+4 -0) </details> ### 📄 Description This fixes Node.js logging lines such as: "(node:211543) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: xxxxx)" because `catch` handlers have been added too late to notice. These errors occur on transactions that run too long, canceling read/write locks on child nodes (causing the rejections). --- <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:33:12 -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#201
No description provided.