-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add New User throwing error #181
Comments
During handling of the above exception, another exception occurred: Traceback (most recent call last): |
We may want to add these to frontend submission form but I added them to the backend temporarily: |
127.0.0.1 - - [12/Oct/2022 11:43:07] "POST /api/users/create HTTP/1.1" 500 -
Traceback (most recent call last):
File "C:\Users\Merritt\miniconda3\Lib\site-packages\flask\app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\Merritt\miniconda3\Lib\site-packages\flask\app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "C:\Projects\codefordc\us-congress-pizza-flag-tracker\src\user\user_controller.py", line 15, in create_user
new_user = UserActions.create(userParams)
File "C:\Projects\codefordc\us-congress-pizza-flag-tracker\src\user\user_actions.py", line 32, in create
new_user = UserModel(user_values)
File "", line 4, in init
File "C:\Users\Merritt\miniconda3\Lib\site-packages\sqlalchemy\orm\state.py", line 480, in initialize_instance
manager.dispatch.init_failure(self, args, kwargs)
File "C:\Users\Merritt\miniconda3\Lib\site-packages\sqlalchemy\util\langhelpers.py", line 70, in exit
compat.raise(
File "C:\Users\Merritt\miniconda3\Lib\site-packages\sqlalchemy\util\compat.py", line 207, in raise_
raise exception
File "C:\Users\Merritt\miniconda3\Lib\site-packages\sqlalchemy\orm\state.py", line 477, in _initialize_instance
return manager.original_init(*mixed[1:], **kwargs)
File "C:\Projects\codefordc\us-congress-pizza-flag-tracker\src\user\user_model.py", line 49, in init
self.manage_all_orders = user_values.manage_all_orders
AttributeError: 'UserParams' object has no attribute 'manage_all_orders'
The text was updated successfully, but these errors were encountered: