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
run pocketbase server and execute the following script with bun
import PocketBase from 'pocketbase';
const pb = new PocketBase('http://127.0.0.1:8090');
await pb.collection('users').authWithPassword('test@example.com', '1234567890');
// Subscribe to changes in any record in the collection
pb.collection('example').subscribe('*', function (e) {
console.log(e.action);
console.log(e.record);
});
What is the expected behavior?
no error
What do you see instead?
ClientResponseError 0: Something went wrong while processing your request.
url: ""
at new ClientResponseError (/node_modules/pocketbase/dist/pocketbase.es.mjs:1:2303)
at /node_modules/pocketbase/dist/pocketbase.es.mjs:1:41348
at /node_modules/pocketbase/dist/pocketbase.es.mjs:1:39833
sub 2 error handling 200 | var e;
201 | var t = function(e) {
202 | function ClientResponseError(t) {
203 | var n, i, o, r, s = this;
204 |
205 | return (s = e.call(this, "ClientResponseError") || this).url = "", s.status = 0, s.response = {}, s.isAbort = !1, s.originalError = null, Object.setPrototypeOf(s, ClientResponseError.prototype), t !== null && typeof t == "object" && (s.url = typeof t.url == "string" ? t.url : "", s.status = typeof t.status == "number" ? t.status : 0, s.isAbort = !!t.isAbort, s.originalError = t.originalError, t.response !== null && typeof t.response == "object" ? s.response = t.response : t.data !== null && typeof t.data == "object" ? s.response = t.data : s.response = {}), s.originalError || t instanceof ClientResponseError || (s.originalError = t), typeof DOMException != "undefined" && t instanceof DOMException && (s.isAbort = !0), s.name = "ClientResponseError " + s.status, s.message = (n = s.response) === null || n === void 0 ? void 0 : n.message, s.message || (s.isAbort ? s.message = "The request was autocancelled. You can find more info in https://github.com/pocketbase/js-sdk#auto-cancellation." : ((r = (o = (i = s.originalError) === null || i === void 0 ? void 0 : i.cause) === null || o === void 0 ? void 0 : o.message) === null || r === void 0 ? void 0 : r.includes("ECONNREFUSED ::1")) ? s.message = "Failed to connect to the PocketBase server. Try changing the SDK URL from localhost to 127.0.0.1 (https://github.com/pocketbase/js-sdk/issues/21)." : s.message = "Something went wrong while processing your request."), s;
Additional information
On nodejs it just work but in bun it producing the error above.
Other feature of pocketbase like view, create, update and delete works.
Only the realtime are having issue, the pocketbase server log is giving this
{
"errorDetails": "No client associated with connection ID \"uUShKwBmmCFzKk0QctfuV9hmNl9hG0MfKpnKt6De\"",
"errorMessage": "Missing or invalid client id."
}
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
0.6.9
What platform is your computer?
Linux 6.1.0-7-amd64 x86_64 unknown
What steps can reproduce the bug?
run pocketbase server and execute the following script with bun
What is the expected behavior?
no error
What do you see instead?
Additional information
On nodejs it just work but in bun it producing the error above.
Other feature of pocketbase like view, create, update and delete works.
Only the realtime are having issue, the pocketbase server log is giving this
The text was updated successfully, but these errors were encountered: