I have my worker code cut down to a bare minimum (e.g. return new Response("Hello World");
), and the issue still occurs.
If I try to enable logging from the dashboard by hitting the “Begin Log Stream” button I get the following error. Could not establish websocket connection. Begin log stream to try again.
I can’t tail logs from wrangler either. Although that could be network here. FWIW, here is the error.
$ npx wrangler tail
Proxy environment variables detected. We'll use your proxy for fetch requests.
⛅️ wrangler 3.29.0
-------------------
Successfully created tail, expires at 2024-02-29T02:01:34Z
C:\Users\wrobert1\stuff\royal-dew-0e5b\node_modules\wrangler\wrangler-dist\cli.js:29573
throw a;
^
Error: Unexpected server response: 403
at ClientRequest.<anonymous> (C:\Users\wrobert1\stuff\royal-dew-0e5b\node_modules\wrangler\wrangler-dist\cli.js:114900:11)
at ClientRequest.emit (node:events:518:28)
at ClientRequest.emit (node:domain:488:12)
at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:693:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
at TLSSocket.socketOnData (node:_http_client:535:22)
at TLSSocket.emit (node:events:518:28)
at TLSSocket.emit (node:domain:488:12)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
Emitted 'error' event on WebSocket instance at:
at emitErrorAndClose (C:\Users\wrobert1\stuff\royal-dew-0e5b\node_modules\wrangler\wrangler-dist\cli.js:114979:17)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Node.js v20.11.1