question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with site URL resulting in "HTTP POST is not supported"

See original GitHub issue

Your question I am trying to deploy the raw sample application with nextjs. Locally everything is working fine, but as soon as I deploy to vercel I get the following error, when trying to sign up with email.

Error: HTTP POST is not supported for /api/auth/tmp-nextjs-with-next-auth-app-duw5xxh03.vercel.app/api/auth/signin/email?nextauth=tmp-nextjs-with-next-auth-app-duw5xxh03.vercel.app%2Fapi%2Fauth%2Fsignin%2Femail

The URL is: https://tmp-nextjs-with-next-auth-app-duw5xxh03.vercel.app/api/auth/tmp-nextjs-with-next-auth-app-duw5xxh03.vercel.app/api/auth/signin/email

That URL doesn’t look right. It’s the same path twice… I have just added the VERCEL_URL environment variable for the deployment.

Is this a bug or am I missing something?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

HTTP method POST is not supported by this URL java servlet
I am having trouble getting the page to work. I have my form method to post and my servlet implements doPost() . However,...
Read more >
HTTP method POST is not supported by this URL
I get the "HTTP method POST is not supported by this URL" error when trying to invoke a servlet from a jsp file....
Read more >
HTTP method POST is not supported by this URL" while ...
The above URL is not supported. To resolve this issue, use cs instead of csfiles. HTTP Status 405 - HTTP method POST is...
Read more >
HTTP method POST is not supported by this URL — oracle-tech
I'm just taking the input and inserting it into a database. But that isn't a problem since I've tested the db insertion before...
Read more >
How to Fix the HTTP 405 Method Not Allowed Error - Kinsta®
A 404 tells you that the requested URL couldn't be found or that it was entered incorrectly. A 405 error message, on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found