wger-project / wger

Self hosted FLOSS fitness/workout, nutrition and weight tracker
https://wger.de
GNU Affero General Public License v3.0
3.11k stars 578 forks source link

Exercise creation: Error 400 on submission #1738

Open seyfeb opened 2 months ago

seyfeb commented 2 months ago

Sometimes, but not always, I get an error 400 logged when clicking the submit exercise button in the exercise creation dialog. The button is then grayed out and no exercise is created. Creating the exercise requires starting from scratch.

Edit: Sometimes the exercise is created with the error but the notes section is missing.

wger version 2.3.0a2

Browser error message ``` Uncaught (in promise) Object { stack: "Du@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:520819\nEs: Object { constructor: Du(e, t, n, r, o), toJSON: toJSON(), stack: "", … } output.1cfcbf2246c6.js:1:514735 ```

Update: The server logs:

wger_server         | WARNING 2024-07-27 16:14:04,458 log Bad Request: /api/v2/exercise-translation/