Vercel Deployment Error: Middleware Invocation Failure (Status 500) #65157
Labels
bug
Issue was opened via the bug report template.
Pages Router
Related to Pages Router.
Parallel & Intercepting Routes
Related to Parallel and/or Intercepting routes.
Partial Prerendering (PPR)
Related to Partial Prerendering.
Runtime
Related to Node.js or Edge Runtime with Next.js.
Link to the code that reproduces this issue
https://github.com/Pratham271/Pratham-portfolio
To Reproduce
To Reproduce
npm run dev
or
yarn dev
or
pnpm dev
or
bun dev
Current vs. Expected behavior
Current : Getting an error
Expected: Redirect to chat
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 21.6.0: Sat Jun 18 17:05:47 PDT 2022; root:xnu-8020.140.41~1/RELEASE_ARM64_T8101 Binaries: Node: 18.14.2 npm: 9.5.0 Yarn: 1.22.10 pnpm: 7.27.1 Relevant packages: next: 13.2.1-canary.0 eslint-config-next: 13.2.0 react: 18.2.0 react-dom: 18.2.0
Which area(s) are affected? (Select all that apply)
Pages Router, Parallel & Intercepting Routes, Partial Prerendering (PPR), Runtime
Which stage(s) are affected? (Select all that apply)
Vercel (Deployed)
Additional context
Here are the logs
TypeError: Invalid URL string.
at (src/middleware.ts:14:21)
at (node_modules/next-auth/next/middleware.js:72:0)
at (node_modules/next-auth/next/middleware.js:54:0)
at (node_modules/next-auth/next/middleware.js:68:0)
at (node_modules/next/dist/esm/server/web/adapter.js:158:0)
[GET] [middleware: "src/middleware"] /chat reason=EDGE_FUNCTION_INVOCATION_FAILED, status=500, user_error=true
middleware code
NEXT_PUBLIC_BASE_URL=https://enigma-chatpdf.vercel.app
The text was updated successfully, but these errors were encountered: