Hmmmmmmmm I have tried upgrading to 2 11

Hmmmmmmmm, I have tried upgrading to 2.11 and now get this in the logs (on all requests): [mf:err] OPTIONS /v2/staff/wsauth?rnd=14084505647541512: TypeError: Failed to parse URL from [object Object] at new Request (/home/aarhus/backend/node_modules/undici/lib/fetch/request.js:76:15) at new Request (/home/aarhus/backend/node_modules/miniflare/node_modules/@miniflare/core/src/standards/http.ts:393:13) at EventTarget.dispatchFetch (/home/aarhus/backend/node_modules/miniflare/node_modules/@miniflare/core/src/index.ts:1061:51) at processTicksAndRejections (node:internal/process/task_queues:96:5) at Server.<anonymous> (/home/aarhus/backend/node_modules/@miniflare/http-server/src/index.ts:298:20) [mf:err] Cause: TypeError: Invalid URL at new NodeError (node:internal/errors:387:5) at URL.onParseError (node:internal/url:564:9) at new URL (node:internal/url:640:5) at new Request (/home/aarhus/backend/node_modules/undici/lib/fetch/request.js:74:21) at new Request (/home/aarhus/backend/node_modules/miniflare/node_modules/@miniflare/core/src/standards/http.ts:393:13) at EventTarget.dispatchFetch (/home/aarhus/backend/node_modules/miniflare/node_modules/@miniflare/core/src/index.ts:1061:51) at processTicksAndRejections (node:internal/process/task_queues:96:5) at Server.<anonymous> (/home/aarhus/backend/node_modules/@miniflare/http-server/src/index.ts:298:20) OPTIONS /v2/staff/wsauth?rnd=14084505647541512 500 Internal Server Error (45.07ms)
3 Replies
MrBBot
MrBBot2y ago
I've seen this issue before, for some reason the previous MIniflare version sticks around when upgrading. Have you got jest-environment-miniflare, vitest-environment-miniflare or wrangler installed too? Make sure you've upgraded them to the latest versions too. If that doesn't work, try removing your node_modules and package-lock.json then re-running npm install.
aarhus
aarhusOP2y ago
Will do. Thanks
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server