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
Several components (mostly Paginators) raise general Python exceptions (ie. ValueError) instead of providing actionable information on what went wrong.
Review the code base and raise customized exception
Take known user feedback in mind ie. Better error handling: display the content of the error document if present
The text was updated successfully, but these errors were encountered:
One probably quite typical case is the pokemon api. We have an openapi spec which misleads the generator into mapping incorrect fields from the parent object to the child url (in the generator resource). This means rest_api tries to look up a value in the parent object which does not exist as a key there. Right now the error is obscure, what would be nice is something like:
Error while processing child resource, expected key "id" not found in parent object of type "pokemon", available keys are: "name", "url". Please update your pokemon endpoint.
This might require changes in the rest helper as well as the rest api.
Several components (mostly Paginators) raise general Python exceptions (ie.
ValueError
) instead of providing actionable information on what went wrong.Review the code base and raise customized exception
Take known user feedback in mind ie.
Better error handling: display the content of the error document if present
The text was updated successfully, but these errors were encountered: