-
-
Notifications
You must be signed in to change notification settings - Fork 585
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
TypeError at /en/exercise/add/ #636
Comments
Thanks, will try to reproduce |
I think I narrowed it down some more. I can consistently get the error by selecting a custom item from the Category menu when adding an exercise. If I hit backspace, change the category to one of the default ones (Except for "Calves", oddly enough) and resubmit, the new exercise is successfully submitted. I can go to the exercise afterwards and edit the category to a custom one just fine. |
After selecting a category the license breaks? Interesting 😅 |
Specifically a custom category or the default Calves, weirdly. The rest of the default categories do not seem to trigger the error. Let me know if there is something I can do to help trace this down further. Thanks for looking into it! |
I have commited a fix, if you wait till the docker images are rebuilt and pull, it should be fixed |
Hot dang that was quick! Thanks a bunch. |
Steps to Reproduce
Latest docker build (with debug on) pulled from github.
I am not sure how to consistently reproduce it, but on the regular when adding a new exercise, django produces a type error that seems to be related to selection of a license.
I have not seen the error if I make sure to actively select a license from the dropdown menu.
Doing things like reloading the site in an incognito window seems to work the best to get around it.
Expected results:
Add exercise -> click checkboxes and type words -> hit submit -> done.
Actual results:
Django Fails to POST the new workout with an error saying an 'id' expected a number but got <License: Creative Commons Attribution Share Alike 3 (CC-BY-SA 3)>
Logs
The text was updated successfully, but these errors were encountered: