Can you try listening to the top level error event: ``` addEventListener('error', (e) => { conso
Can you try listening to the top level error event:
addEventListener('error', (e) => {
console.log(e.error);
});npx wrangler pages dev?{"status":500,"error":"Cannot read properties of undefined (reading 'join')"}. Why would the client get the error but wrangler doesn't?--test-scheduled to forward fetch triggers. npm create hono@latest my-app reponpm create cloudflare@latest -- my-first-worker then installed honojs to it and now the scheduled worker is workinggetPlatformProxy()?experimental-json-config safe to use with wrangler? or are there some pitfalls that i should know about if i want to use a json config insteadHTTP Only cookies that need to get sent and chrome will not do that unless HTTPS is onwrangler dev --local-protocol https. It should work--ip 0.0.0.0 in the docker containerSocketManager on first deploy, on subsequent deploys I get this error from wrangler: —from-dash option in wrangler init: https://developers.cloudflare.com/workers/wrangler/commands/#init
// Currently...
[[migrations]]
tag = 'v1'
new_classes = ['StateObject']
[[migrations]]
tag = 'v1'
new_classes = ['SocketManager']npx wrangler pages dev{"status":500,"error":"Cannot read properties of undefined (reading 'join')"}--test-schedulednpm create hono@latest my-appnpm create cloudflare@latest -- my-first-workergetPlatformProxy()experimental-json-config/home/naourass/web_exp/phoenix-astro-next/node_modules/undici/index.js:112
Error.captureStackTrace(err, this)
^
TypeError: fetch failed
at Object.fetch (/home/naourass/web_exp/phoenix-astro-next/node_modules/undici/index.js:112:15)
at async fetch3 (/home/naourass/web_exp/phoenix-astro-next/node_modules/miniflare/src/http/fetch.ts:90:19)
at async ProxyClientBridge.dispatchFetch (/home/naourass/web_exp/phoenix-astro-next/node_modules/miniflare/src/index.ts:1647:20)
at async ProxyStubHandler.#parseAsyncResponse (/home/naourass/web_exp/phoenix-astro-next/node_modules/miniflare/src/plugins/core/proxy/client.ts:339:15)
at async SQLiteD1Session.batch (/home/naourass/web_exp/phoenix-astro-next/node_modules/src/d1/session.ts:82:24) {
cause: SocketError: other side closed
at Socket.onSocketEnd (/home/naourass/web_exp/phoenix-astro-next/node_modules/undici/lib/client.js:1118:22)
at Socket.emit (node:events:530:35)
at Socket.emit (node:domain:489:12)
at endReadableNT (node:internal/streams/readable:1698:12)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
code: 'UND_ERR_SOCKET',
socket: {
localAddress: '127.0.0.1',
localPort: 39446,
remoteAddress: undefined,
remotePort: undefined,
remoteFamily: undefined,
timeout: undefined,
bytesWritten: 1148,
bytesRead: 3678304
}
}
}
Node.js v22.11.0const cfPlatformProxy = await getPlatformProxy()
const db = drizzle(cfPlatformProxy.env.DB)
await db.batch([...insertQueries])