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

when trying to post video #119

Closed
ernestoluciano opened this issue Jun 4, 2020 · 0 comments · Fixed by #120
Closed

when trying to post video #119

ernestoluciano opened this issue Jun 4, 2020 · 0 comments · Fixed by #120
Labels

Comments

@ernestoluciano
Copy link

ERROR [app.main] Exception on /video [POST]
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functionsrule.endpoint
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/flask_login/utils.py", line 228, in decorated_view
return func(*args, **kwargs)
File "/Users/Ernesto/FQM/app/helpers.py", line 136, in decorated
return function(*args, **kwargs)
File "/Users/Ernesto/FQM/app/views/customize.py", line 117, in video
media_record = data.Media.get(form.video.data)
AttributeError: type object 'Media' has no attribute 'get'
werkzeug.exceptions.InternalServerError: 500 Internal Server Error: The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

@mrf345 mrf345 added the bug label Jun 4, 2020
mrf345 added a commit that referenced this issue Jun 4, 2020
- Refactor `customize.py` legacy code
- Add test coverage for `customize.py`
- Add some helpers
- Fix yesterday's refactoring bugs 🤦‍♂️. resolves #119 #118 #115 #112
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants