You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See grocy/grocy#2533
TL;DR: Make a recipe with an ingredient with "stock fulfillment checking" disabled. Not have it in stock.
Then try to consume the recipe from the app.
What happens
screen-20240502-225655.mp4
Just shows a very generic error:
Netzwerkfehler
com.android.volley.ClientError
at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:257)
at com.android.volley.NetworkDispatcher.processRequest(NetworkDispatcher.java:62)
at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:6)
A server error is shown, but no details. Grocy web, shows this instead:
"{\"error_message\":\"Amount to be consumed cannot be > current stock amount (if supplied, at the desired location)\"}"
What should happen
You may at least pass that error message to the user?
The text was updated successfully, but these errors were encountered:
rugk
changed the title
Show error message from backend
Show error message from backend (in case of consuming recipe if ingredients with disabled stock fulfillment checking)
May 4, 2024
Thanks yeah, maybe you can also show the stock amount even for "stock fulfillment checking"-disabled ingredients to prevent this error from occurring initially. (Especially, as – as indicated upstream – the error message, even if displayed, does not mention the bad ingredient, which can lead to painful debugging of your recipe 😅) Everything else would AFAIK need server support/changes in the general handling, as suggested in grocy/grocy#2533.
STR
See grocy/grocy#2533
TL;DR: Make a recipe with an ingredient with "stock fulfillment checking" disabled. Not have it in stock.
Then try to consume the recipe from the app.
What happens
screen-20240502-225655.mp4
Just shows a very generic error:
A server error is shown, but no details. Grocy web, shows this instead:
What should happen
You may at least pass that error message to the user?
The text was updated successfully, but these errors were encountered: