Problem with site URL resulting in "HTTP POST is not supported"
See original GitHub issueYour 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
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:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@Abderrahmenla the callback url’s must end with the id of the provider. So
respectively.
See: https://next-auth.js.org/getting-started/rest-api#post-apiauthsigninprovider
Yes it’s working now.