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

Exercise creation: Error 400 on submission #1738

Open
seyfeb opened this issue Jul 24, 2024 · 0 comments
Open

Exercise creation: Error 400 on submission #1738

seyfeb opened this issue Jul 24, 2024 · 0 comments

Comments

@seyfeb
Copy link

seyfeb commented Jul 24, 2024

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</</g/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:535734\ng@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:535882\nEventHandlerNonNull*Es</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:536173\nEs<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:534834\nNs@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:538983\nvalue@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:543328\ne/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:541667\nh@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353316\n7061/o/P/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:354640\n7061/o/O/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353726\nJl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514700\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\nXl/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514966\nXl/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514844\nHs<.value@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:542088\nt/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:543810\nnu/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:515049\ne/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:1585033\nh@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353316\n7061/o/P/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:354640\n7061/o/O/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353726\nJl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514700\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\nXl/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514966\nXl/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514844\nHte@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:1585200\nWte/e/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:1586899\nh@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353316\n7061/o/P/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:354640\n7061/o/O/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353726\nJl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514700\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\npromise callback*Jl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514771\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\npromise callback*Jl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514771\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\npromise callback*Jl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514771\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\nXl/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514966\nXl/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514844\nWte/x@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:1587951\nNe@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:201766\nBe@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:201920\n534/_r/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:221820\n_r@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:221914\nFr@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:222331\n534/Ur/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:227773\nss@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:291440\nMe@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:200898\nUr@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:223625\nGt@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:208021\nWt@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:207803\n\nh@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353316\n7061/o/P/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:354640\n7061/o/O/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353726\nJl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514700\nl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514943\npromise callback*Jl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514771\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\nXl/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514966\nXl/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514844\nHs<.value@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:542088\nt/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:543810\nnu/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:515049\ne/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:1585033\nh@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353316\n7061/o/P/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:354640\n7061/o/O/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353726\nJl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514700\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\nXl/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514966\nXl/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514844\nHte@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:1585200\nWte/e/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:1586899\nh@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353316\n7061/o/P/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:354640\n7061/o/O/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353726\nJl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514700\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\npromise callback*Jl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514771\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\npromise callback*Jl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514771\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\npromise callback*Jl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514771\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\nXl/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514966\nXl/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514844\nWte/x@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:1587951\nNe@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:201766\nBe@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:201920\n534/_r/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:221820\n_r@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:221914\nFr@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:222331\n534/Ur/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:227773\nss@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:291440\nMe@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:200898\nUr@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:223625\nGt@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:208021\nWt@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:207803\n", message: "Request failed with status code 400", name: "AxiosError", code: "ERR_BAD_REQUEST", config: {…}, request: XMLHttpRequest, response: {…} }
​
code: "ERR_BAD_REQUEST"
​
config: Object { timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", … }
​
message: "Request failed with status code 400"
​
name: "AxiosError"
​
request: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … }
​
response: Object { data: {…}, status: 400, statusText: "", … }
​
stack: "Du@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:520819\nEs</</g/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:535734\ng@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:535882\nEventHandlerNonNull*Es</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:536173\nEs<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:534834\nNs@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:538983\nvalue@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:543328\ne/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:541667\nh@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353316\n7061/o/P/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:354640\n7061/o/O/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353726\nJl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514700\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\nXl/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514966\nXl/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514844\nHs<.value@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:542088\nt/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:543810\nnu/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:515049\ne/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:1585033\nh@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353316\n7061/o/P/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:354640\n7061/o/O/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353726\nJl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514700\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\nXl/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514966\nXl/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514844\nHte@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:1585200\nWte/e/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:1586899\nh@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353316\n7061/o/P/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:354640\n7061/o/O/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353726\nJl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514700\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\npromise callback*Jl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514771\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\npromise callback*Jl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514771\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\npromise callback*Jl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514771\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\nXl/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514966\nXl/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514844\nWte/x@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:1587951\nNe@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:201766\nBe@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:201920\n534/_r/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:221820\n_r@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:221914\nFr@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:222331\n534/Ur/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:227773\nss@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:291440\nMe@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:200898\nUr@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:223625\nGt@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:208021\nWt@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:207803\n\nh@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353316\n7061/o/P/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:354640\n7061/o/O/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353726\nJl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514700\nl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514943\npromise callback*Jl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514771\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\nXl/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514966\nXl/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514844\nHs<.value@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:542088\nt/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:543810\nnu/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:515049\ne/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:1585033\nh@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353316\n7061/o/P/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:354640\n7061/o/O/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353726\nJl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514700\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\nXl/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514966\nXl/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514844\nHte@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:1585200\nWte/e/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:1586899\nh@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353316\n7061/o/P/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:354640\n7061/o/O/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:353726\nJl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514700\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\npromise callback*Jl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514771\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\npromise callback*Jl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514771\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\npromise callback*Jl@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514771\na@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514906\nXl/</<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514966\nXl/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:514844\nWte/x@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:1587951\nNe@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:201766\nBe@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:201920\n534/_r/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:221820\n_r@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:221914\nFr@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:222331\n534/Ur/<@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:227773\nss@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:291440\nMe@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:200898\nUr@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:223625\nGt@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:208021\nWt@https://wger.mydomain.com/static/CACHE/js/output.1cfcbf2246c6.js:1:207803\n"
​
<prototype>: 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/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant