跳至內容

When i delopy a next.js 13.4 application with amplify, i call my /api/auth/login route got 500

0

When i delopy a next.js 13.4 application with amplify, i call my /api/auth/login route got 500

已提問 3 年前檢視次數 329 次

1 個回答
0

Encountering a 500 error when calling /api/auth/login in a Next.js 13.4 application deployed with Amplify indicates a backend issue, possibly related to Lambda function or API Gateway configuration.

To resolve this issue, first, inspect the AWS Lambda function logs (/api/auth/login) for any specific error messages. Verify the API Gateway configuration to ensure it correctly routes requests to the Lambda function. Additionally, check that endpoint URLs in both frontend (aws-exports.js) and backend configurations are accurate and aligned. Testing the endpoint locally with tools like Postman can help reproduce and debug the problem effectively.

專家

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。