You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✘ [ERROR] Unexpected error during logical streaming - reconnecting TypeError: socket.resume is not a function
at Duplex.read [as _read] (node_modules/postgres/cf/src/connection.js:865:16)
at Readable.read (node-internal:streams_readable:452:12)
at resume_ (node-internal:streams_readable:881:12)
at null.<anonymous> (node-internal:process:14:28)
I'm setting up a simple subscription in my Durable Object as follows:
and it's failing with this error
which points to this line
postgres/cf/src/connection.js
Line 864 in a2c7de1
Throwing the above error seems to send it into some kind of reconnection loop. If I log out the socket object I get
and looking at the cloudflare socket polyfill code it indeed seems like there is no 'pause'/'resume' implementations
postgres/cf/polyfills.js
Line 132 in a2c7de1
I tried playing around with providing naive implementations of these methods but I couldn't make the subscription work.
The text was updated successfully, but these errors were encountered: