[GH-ISSUE #66] nodejs - Maximum call stack size exceeded #26

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

Originally created by @donl on GitHub (Oct 9, 2024).
Original GitHub issue: https://github.com/appy-one/acebase-client/issues/66

Originally assigned to: @appy-one on GitHub.

Newer versions of nodejs tend to crash when an acebase-client attempts to connect to a server that is returning an error.

I assume this is more of an issue with nodejs -- however I wanted to bring it to your attention.

import { AceBaseClient } from "acebase-client";

let settings = {
    host: 'httpstat.us/500',
    port: 443,
    https: true,
};

let db = new AceBaseClient(settings);

db.ready().then(() => { console.log("ready"); });

results in the following crash:

node:internal/event_target:1090
  process.nextTick(() => { throw err; });
                           ^

RangeError: Maximum call stack size exceeded
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:824:9)
    at WebSocket.dispatchEvent (node:internal/event_target:751:26)
    at fireEvent (node:internal/deps/undici/undici:11334:14)
    at failWebsocketConnection (node:internal/deps/undici/undici:11415:9)
    at closeWebSocketConnection (node:internal/deps/undici/undici:11686:9)
    at WebSocket.close (node:internal/deps/undici/undici:12346:9)
    at WS.doClose (C:\Users\user\projects\acebase-client-stack\node_modules\engine.io-client\lib\transports\websocket.js:248:13)
    at Transport.close (C:\Users\user\projects\acebase-client-stack\node_modules\engine.io-client\lib\transport.js:98:10)
    at Socket.onClose (C:\Users\user\projects\acebase-client-stack\node_modules\engine.io-client\lib\socket.js:713:20)
    at Socket.onError (C:\Users\user\projects\acebase-client-stack\node_modules\engine.io-client\lib\socket.js:691:8)

Node.js v22.7.0
Originally created by @donl on GitHub (Oct 9, 2024). Original GitHub issue: https://github.com/appy-one/acebase-client/issues/66 Originally assigned to: @appy-one on GitHub. Newer versions of nodejs tend to crash when an acebase-client attempts to connect to a server that is returning an error. I assume this is more of an issue with nodejs -- however I wanted to bring it to your attention. ``` javascript import { AceBaseClient } from "acebase-client"; let settings = { host: 'httpstat.us/500', port: 443, https: true, }; let db = new AceBaseClient(settings); db.ready().then(() => { console.log("ready"); }); ``` results in the following crash: ``` node:internal/event_target:1090 process.nextTick(() => { throw err; }); ^ RangeError: Maximum call stack size exceeded at [nodejs.internal.kHybridDispatch] (node:internal/event_target:824:9) at WebSocket.dispatchEvent (node:internal/event_target:751:26) at fireEvent (node:internal/deps/undici/undici:11334:14) at failWebsocketConnection (node:internal/deps/undici/undici:11415:9) at closeWebSocketConnection (node:internal/deps/undici/undici:11686:9) at WebSocket.close (node:internal/deps/undici/undici:12346:9) at WS.doClose (C:\Users\user\projects\acebase-client-stack\node_modules\engine.io-client\lib\transports\websocket.js:248:13) at Transport.close (C:\Users\user\projects\acebase-client-stack\node_modules\engine.io-client\lib\transport.js:98:10) at Socket.onClose (C:\Users\user\projects\acebase-client-stack\node_modules\engine.io-client\lib\socket.js:713:20) at Socket.onError (C:\Users\user\projects\acebase-client-stack\node_modules\engine.io-client\lib\socket.js:691:8) Node.js v22.7.0 ```
gitea-mirror added the
bug
dependencies
labels 2026-05-23 08:34:46 -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#26
No description provided.