Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vercel Deployment Error: Middleware Invocation Failure (Status 500) #65157

Open
Pratham271 opened this issue Apr 29, 2024 · 0 comments
Open

Vercel Deployment Error: Middleware Invocation Failure (Status 500) #65157

Pratham271 opened this issue Apr 29, 2024 · 0 comments
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.

Comments

@Pratham271
Copy link

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
Screenshot 2024-04-29 at 1 32 08 PM
Expected: Redirect to chat
Screenshot 2024-04-29 at 1 21 57 PM

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
Screenshot 2024-04-29 at 1 36 04 PM
NEXT_PUBLIC_BASE_URL=https://enigma-chatpdf.vercel.app

@Pratham271 Pratham271 added the bug Issue was opened via the bug report template. label Apr 29, 2024
@github-actions github-actions bot added 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. labels Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

1 participant