Password reset fails with 500 Internal Server Error from Stack Auth API
Environment
- Stack Auth Version: 2.8.27
- Framework: Next.js 15.2.4 with App Router
- Environment: Development (localhost:3000)
- Browser: [Your browser]
Issue Description
When attempting to send a password reset email using Stack Auth's forgot password functionality, the request fails with a 500 Internal Server Error from the Stack Auth API.
Steps to Reproduce
- Navigate to the forgot password page (Stack Auth's default UI)
- Enter email address
- Click "Send Email" button
- Error occurs immediately
Error Details
StackAssertionError: Failed to send request to https://api.stack-auth.com/api/v1/auth/password/send-reset-code: 500 Something went wrong. Please make sure the data you entered is correct. Stack: Request ID: akhg7kwz58x2z2es This is likely an error in Stack. Please make sure you are running the newest version and report it.
Request payload:
{ "email": "[email]", "callback_url": "http://localhost:3000/handler/password-reset" }
Request headers:
Content-Type: application/json X-Stack-Access-Type: client X-Stack-Client-Version: js @stackframe/[email protected] X-Stack-Project-Id: [] X-Stack-Publishable-Client-Key: []
Configuration Verified
- Using latest Stack Auth version 2.8.27
- Valid email format
- Environment variables properly configured
- localhost:3000 added to trusted domains in dashboard
- Stack handler properly configured at /handler/[...stack]
- Login and Create Account working as expected
Expected Behavior
Password reset email should be sent successfully without 500 errors.
Additional Context
- This functionality worked previously
- Error message suggests this is a Stack Auth service-side issue
- Request ID provided: akhg7kwz58x2z2es
Project Setup
// stack.tsx import { StackServerApp } from "@stackframe/stack";
export const stackServerApp = new StackServerApp({ tokenStore: "nextjs-cookie", });
// app/handler/[...stack]/page.tsx import { StackHandler } from "@stackframe/stack"; import { stackServerApp } from "../../../stack";
export default function Handler(props: unknown) { return <StackHandler fullPage app={stackServerApp} routeProps={props} />; }
Hi. I have Tested this and didn't face any Errors. Looks like the issue got resolved with some other commits or maybe this was an intermittent issue.