Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When implementing email sign up and verification for the project, We will get an error if this decode method is not removed on line 141:
mwdb_1 | [ERROR] uWSGIWorker4Core0 - service.error_router:76 - Unhandled exception occurred
mwdb_1 | Traceback (most recent call last):
mwdb_1 | File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1516, in full_dispatch_request
mwdb_1 | rv = self.dispatch_request()
mwdb_1 | File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1502, in dispatch_request
mwdb_1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
mwdb_1 | File "/usr/local/lib/python3.8/site-packages/flask_restful/init.py", line 467, in wrapper
mwdb_1 | resp = resource(*args, **kwargs)
mwdb_1 | File "/usr/local/lib/python3.8/site-packages/flask_limiter/extension.py", line 1036, in __inner
mwdb_1 | return current_app.ensure_sync(obj)(*a, **k)
mwdb_1 | File "/usr/local/lib/python3.8/site-packages/flask_limiter/extension.py", line 1036, in __inner
mwdb_1 | return current_app.ensure_sync(obj)(*a, **k)
mwdb_1 | File "/usr/local/lib/python3.8/site-packages/flask_limiter/extension.py", line 1036, in __inner
mwdb_1 | return current_app.ensure_sync(obj)(*a, **k)
mwdb_1 | [Previous line repeated 5 more times]
mwdb_1 | File "/usr/local/lib/python3.8/site-packages/flask/views.py", line 84, in view
mwdb_1 | return current_app.ensure_sync(self.dispatch_request)(*args, **kwargs)
mwdb_1 | File "/usr/local/lib/python3.8/site-packages/flask_restful/init.py", line 582, in dispatch_request
mwdb_1 | resp = meth(*args, **kwargs)
mwdb_1 | File "/app/./mwdb/resources/init.py", line 31, in endpoint
mwdb_1 | return f(*args, **kwargs)
mwdb_1 | File "/app/./mwdb/resources/user.py", line 140, in post
mwdb_1 | set_password_token=user.generate_set_password_token().decode("utf-8"),
mwdb_1 | AttributeError: 'str' object has no attribute 'decode'
Your checklist for this pull request
What is the current behaviour?
What is the new behaviour?
Test plan
Closing issues
closes #issuenumber