Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Warning! Status check on the deployed lambda failed. A GET request to '/' yielded a 500 response code. #1354

Open
virendrasing365 opened this issue Oct 4, 2024 · 1 comment

Comments

@virendrasing365
Copy link

getting internal server error and also lama function is getting more than 60 sec to execute
zappa.setting.json:
{
"staging": {

    "aws_region": "us-east-1",
    "django_settings": "src.core.settings",

    "aws_region": "us-east-1",  // Set the AWS region to where your Lambda function is deployed
    "django_settings": "src.core.settings",  // This is the Django settings module path
    "app_function": null,  // Replace with your actual app function, adjust as per your app's entry point
    "profile_name": "rankfirst",  // Keep this if you are using the profile named 'rankfirst'
    "project_name": "rankfirst-be",  // Project name remains the same
    "runtime": "python3.10",  // Keeping the current Python runtime, unless you need to switch to python3.9
    "s3_bucket": "zappa-43i76hijm",  // Bucket name set by Zappa, if this is the one to use
    "environment_variables": {
        "SECRET_NAME": "stage/rankfirst"  // Replace with your actual Secrets Manager secret name
    },
    "manage_roles": false,  // Set to false since you're using a custom IAM role
    "role_name": "LambdaSecretsManagerAccessRole",  // Replace with your actual created IAM role name
    "timeout_seconds": 60,  // Set timeout for Lambda function
    "memory_size": 128,  // Set memory size, adjust based on your requirements
    "slim_handler": true,  // Enable slim handler for faster deploys

    "exclude": [
        "boto3",
        "dateutil",
        "botocore",
        "s3transfer",
        "concurrent"



    ]

}

}

@sridhar562345
Copy link
Contributor

sridhar562345 commented Oct 4, 2024

@virendrasing365 you can check the lambda cloudwatch logs to debug the issue.

Providing additional logs would be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants