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

[Migrated] Flask_Ask 500 Internal error with Zappa #150

Closed
jneves opened this issue Feb 20, 2021 · 0 comments
Closed

[Migrated] Flask_Ask 500 Internal error with Zappa #150

jneves opened this issue Feb 20, 2021 · 0 comments

Comments

@jneves
Copy link
Contributor

jneves commented Feb 20, 2021

Originally from: Miserlou/Zappa#933 by libert-xyz

Context

Hi, I followed this tutorial to deploy an Alexa Skill with Zappa: video and I'm getting a 500 error

Expected Behavior

My skill should work from Alexa(works locally with ngrok)

Actual Behavior

Output from AWS API Gateway

"{u'message': u'An uncaught exception happened while servicing this request. You can investigate this with the zappa tail command.', u'traceback': ['Traceback (most recent call last):\\n', ' File \"/var/task/handler.py\", line 433, in handler\\n response = Response.from_app(self.wsgi_app, environ)\\n', ' File \"/tmp/pip-build-jW5QZX/Werkzeug/werkzeug/wrappers.py\", line 903, in from_app\\n', ' File \"/tmp/pip-build-jW5QZX/Werkzeug/werkzeug/wrappers.py\", line 57, in _run_wsgi_app\\n', ' File \"/tmp/pip-build-jW5QZX/Werkzeug/werkzeug/test.py\", line 884, in run_wsgi_app\\n', \"TypeError: 'NoneType' object is not callable\\n\"]}"

Steps to Reproduce

  1. source venv/bin/activate
  2. pip install flask_ask zappa
  3. zappa init / zappa deploy dev

Environment

  • Zappa version used: zappa==0.42.1
  • Operating System and Python version: Ubuntu / Python 2.7
  • pip freezeaniso8601==1.2.0 argcomplete==1.8.2 asn1crypto==0.22.0 base58==0.2.4 boto3==1.4.4 botocore==1.5.40 certifi==2017.4.17 cffi==1.10.0 chardet==3.0.4 click==6.7 cryptography==1.9 docutils==0.13.1 durationpy==0.4 enum34==1.1.6 Flask==0.12.1 Flask-Ask==0.9.3 future==0.16.0 futures==3.1.1 hjson==2.0.7 idna==2.5 ipaddress==1.0.18 itsdangerous==0.24 Jinja2==2.9.6 jmespath==0.9.3 kappa==0.6.0 lambda-packages==0.15.1 MarkupSafe==1.0 placebo==0.8.1 pycparser==2.17 pyOpenSSL==17.0.0 python-dateutil==2.6.0 python-slugify==1.2.4 PyYAML==3.12 requests==2.18.1 s3transfer==0.1.10 six==1.10.0 toml==0.9.2 tqdm==4.14.0 troposphere==1.9.4 Unidecode==0.4.20 urllib3==1.21.1 Werkzeug==0.12 wsgi-request-logger==0.4.6 zappa==0.42.1
  • zappa_settings.json
{
    "dev": {
        "app_function": "skill.app", 
        "profile_name": "default", 
        "s3_bucket": "zapa-XXXX"
    }
}

Any thoughts?

@jneves jneves closed this as completed Feb 20, 2021
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

1 participant