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

[Production] AttributeError: 'NoneType' object has no attribute 'module_id' #116

Closed
Satendra-SR opened this issue May 25, 2021 · 2 comments
Assignees
Labels
bug 🐛 Something isn't working enhancement New feature or request Point: 1 priority: high This issue or pull request is on high priority Sprint: 2 (May) 17 - 30 May

Comments

@Satendra-SR
Copy link
Member

Describe the bug

An error repeatedly occurs in the past few hours in production.

AttributeError: 'NoneType' object has no attribute 'module_id'
at add_user_module_content (/workspace/api/services/content_service.py:26)
at webhook (/workspace/main.py:26)
at view_func (/layers/google.python.pip/pip/lib/python3.8/site-packages/functions_framework/__init__.py:67)
at dispatch_request (/layers/google.python.pip/pip/lib/python3.8/site-packages/flask/app.py:1936)
at full_dispatch_request (/layers/google.python.pip/pip/lib/python3.8/site-packages/flask/app.py:1950)
at reraise (/layers/google.python.pip/pip/lib/python3.8/site-packages/flask/_compat.py:39)
at handle_user_exception (/layers/google.python.pip/pip/lib/python3.8/site-packages/flask/app.py:1821)
at full_dispatch_request (/layers/google.python.pip/pip/lib/python3.8/site-packages/flask/app.py:1952)
at wsgi_app (/layers/google.python.pip/pip/lib/python3.8/site-packages/flask/app.py:2447)

Expected behavior

  • These errors shouldn't have occurred in prod.

Additional context

  • We started the survey for that we used IVR prompts. These IVR prompts are using content ids those which don't have a module associated with them. Need to check how we can give such capabilities.
@Satendra-SR Satendra-SR added bug 🐛 Something isn't working enhancement New feature or request priority: high This issue or pull request is on high priority labels May 25, 2021
@Satendra-SR Satendra-SR self-assigned this May 25, 2021
Satendra-SR added a commit that referenced this issue May 25, 2021
…le-content-optional-mapping

#116 [Fix] AttributeError: 'NoneType' object has no attribute 'module_id'
@Satendra-SR
Copy link
Member Author

@prtkdost this is deployed on production and working fine now. Moving it to the accepted bucket. Please let me know if you have anything to confirm here.

@Satendra-SR Satendra-SR added the Sprint: 2 (May) 17 - 30 May label May 26, 2021
@Satendra-SR
Copy link
Member Author

This issue is not longer replicating. Closing now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working enhancement New feature or request Point: 1 priority: high This issue or pull request is on high priority Sprint: 2 (May) 17 - 30 May
Projects
None yet
Development

No branches or pull requests

1 participant