Troubleshooting
Common issues and solutions for the AI SaaS Boilerplate
Troubleshooting
This guide covers common issues you might encounter when deploying and running the AI SaaS Boilerplate, along with their solutions.
Troubleshooting Categories
Deployment Issues
Problems with CDK deployment and infrastructure
Frontend Issues
Common frontend and UI problems
Authentication Issues
Issues with user login and authentication
Payment Issues
Problems with Stripe integration and payments
AI Service Issues
Troubleshooting individual AI services
Debugging Tools and Resources
Before diving into specific issues, familiarize yourself with these debugging tools:
- CloudWatch Logs: For Lambda function logs
- CloudFormation Console: For deployment issues
- API Gateway Test Console: For testing API endpoints
- Stripe Dashboard: For payment and webhook testing
- Browser DevTools: For frontend debugging
Common Deployment Issues
Common Frontend Issues
Common Backend and Service Issues
AI Service-Specific Issues
Logs and Monitoring
Effective logging and monitoring are crucial for troubleshooting. Here's how to access different types of logs:
CloudWatch Logs
To access Lambda function logs:
- Go to the CloudWatch Console
- Click "Log groups" in the left sidebar
- Find the log group for your function (usually
/aws/lambda/your-function-name
) - Click on the log group and then on the most recent log stream
API Gateway Logs
To enable and view API Gateway logs:
- Go to the API Gateway Console
- Select your API
- Click "Stages" and select your stage
- Under "Logs/Tracing", enable CloudWatch logs
- View the logs in CloudWatch under the log group
/aws/apigateway/your-api-id
Amplify Build Logs
To view frontend build logs:
- Go to the Amplify Console
- Select your application
- Click on the branch
- Click "Build logs" to see the most recent build
Getting Help
If you've tried the solutions above and are still experiencing issues:
- Check for similar issues in the GitHub repository
- Search for error messages in AWS documentation or forums
- Consider reaching out to the community or the boilerplate author
Next Steps
For more detailed troubleshooting information, explore these specific guides: