Closed jneves closed 6 months ago
Hi there! Unfortunately, this Issue has not seen any activity for at least 90 days. If the Issue is still relevant to the latest version of Zappa, please comment within the next 10 days if you wish to keep it open. Otherwise, it will be automatically closed.
Hi there! Unfortunately, this Issue was automatically closed as it had not seen any activity in at least 100 days. If the Issue is still relevant to the latest version of Zappa, please open a new Issue.
Originally from: https://github.com/Miserlou/Zappa/issues/1929 by prateekponnuru
I am trying to use aysnc tasks for the first time in my django project and when i access the API that invokes the async task, i get the 403 Bad Request error from Cloudfront.
Code
My Environment
pip freeze
: argcomplete==1.9.3 asn1crypto==0.24.0 astroid==2.0.4 attrdict==2.0.1 autopep8==1.4.4 awscli==1.16.96 base58==1.0.0 boto3==1.7.65 botocore==1.12.193 CacheControl==0.12.5 cachetools==3.1.0 certifi==2018.4.16 cffi==1.12.2 cfn-flip==1.0.3 chardet==3.0.4 click==6.7 colorama==0.3.9 cryptography==2.6.1 Django==2.0.7 django-bulk-update==2.2.0 django-cors-headers==3.0.2 django-model-utils==3.1.2 django-multiselectfield==0.1.8 django-silk==3.0.2 django-storages==1.7.1 django-uuidfield==0.5.0 djangorestframework==3.8.2 djangorestframework-jwt==1.11.0 docutils==0.14 durationpy==0.5 elasticsearch==7.0.1 elasticsearch-dsl==7.0.0 et-xmlfile==1.0.1 firebase==3.0.1 firebase-admin==2.16.0 future==0.16.0 google-api-core==1.14.0 google-auth==1.6.3 google-cloud-core==1.0.2 google-cloud-firestore==1.3.0 google-cloud-storage==1.16.1 google-resumable-media==0.3.2 googleapis-common-protos==1.6.0 gprof2dot==2017.9.19 grpcio==1.19.0 h2==2.6.2 hjson==3.0.1 hpack==3.0.0 http-ece==1.1.0 hyper==0.7.0 hyperframe==3.2.0 idna==2.7 isort==4.3.4 jdcal==1.4 Jinja2==2.10.1 jmespath==0.9.4 kappa==0.6.0 lambda-packages==0.20.0 lazy-object-proxy==1.3.1 MarkupSafe==1.1.1 mccabe==0.6.1 msgpack==0.6.1 mysqlclient==1.3.12 openpyxl==2.6.1 Pillow==6.1.0 placebo==0.8.1 protobuf==3.7.1 py-vapid==1.4.0 pyasn1==0.4.5 pyasn1-modules==0.2.4 pycodestyle==2.5.0 pycparser==2.19 pyfcm==1.4.5 Pygments==2.4.2 PyJWT==1.6.4 pylint==2.1.1 python-dateutil==2.8.0 python-slugify==1.2.4 pytz==2018.5 pywebpush==1.9.1 PyYAML==3.13 qrcode==6.1 razorpay==1.2.0 requests==2.21.0 requests-aws4auth==0.9 requests-toolbelt==0.9.1 rsa==3.4.2 s3transfer==0.1.13 sentry-sdk==0.11.2 six==1.12.0 sqlparse==0.3.0 toml==0.9.4 tqdm==4.19.1 troposphere==2.3.1 typed-ast==1.1.0 Unidecode==1.0.22 urllib3==1.24.3 watchtower==0.6.0 Werkzeug==0.14.1 whitenoise==4.1.3 wrapt==1.10.11 wsgi-request-logger==0.4.6 zappa==0.48.2zappa_settings.py
: "stage": { "environment_variables": { "debugger_level": "DEBUG", "django_level": "DEBUG", "django_request_level": "DEBUG", "django_db_backends_level": "DEBUG", "slow_query": "0.3", "slow_request": "3" }, "manage_roles": false, "role_name": "ZappaLambdaRole", "role_arn": "arn:aws:iam::845432364009:role/ZappaLambdaRole", "aws_region": "us-east-1", "django_settings": "settings.settings_stage", "profile_name": "default", "project_name": "hms_backend", "runtime": "python3.6", "s3_bucket": "hms-zappa-storage-stage", "events": [{ "function": "polls.tasks.activate_polls", "expression": "cron(30 18 ? )" }, {"function": "polls.tasks.deactivate_polls", "expression": "cron(30 18 ? )"}, {"function": "tenant.tasks.days_checkouts", "expression": "cron(30 18 ? )"}, {"function": "booking.tasks.days_bookings", "expression": "cron(30 18 ? )"}, {"function": "property.tasks.expire_subscriptions", "expression": "cron(30 18 ? )"}, {"function": "tenant.tasks.generate_rents", "expression": "cron(30 18 1 ? )"}, {"function": "staff.tasks.generate_salaries", "expression": "cron(30 18 1 ? )"}, {"function": "mealplan.tasks.Auto_Reject_Mealskips", "expression": "cron(0/30 0-23 ? )"} ] }