Closed robbykrlos closed 3 years ago
@gandesc what do you think about this? Might be a good idea to add in the global error handler a toaster for 500 errors.
Hi @robbykrlos
I'm seeing the error handler set in @enso-ui/forms/src/bulma/fields/SelectField.vue
link
Also, as expected, upon breaking the Options controller, I'm getting the toastr notification.
I'm on @enso-ui/forms 2.3.18
What are we missing here?
maybe he's in production and does not use sentry. in this case the toastr is not shown.
maybe he's in production and does not use sentry. in this case the toastr is not shown.
Yes, this is correct, this came from a QA system that is set to PROD + we do not use sentry (not even on local)
Hi @robbykrlos
I'm seeing the error handler set in
@enso-ui/forms/src/bulma/fields/SelectField.vue
linkAlso, as expected, upon breaking the Options controller, I'm getting the toastr notification.
I'm on
@enso-ui/forms 2.3.18
What are we missing here?
This is also correct - we are not using this @enso-ui/forms 2.3.18
"name": "@enso-ui/forms",
"version": "2.3.9",
I thought I've checked the latest version on github, but only checked the vue-select, not the selectField component.
I'll consider this fixed by 4.8.0 (@enso-ui/forms 2.3.18) then. As mentioned in the ticket description we are still on 4.7.1. Will upgrade soon.
I consider this closed, unless you still see something to be done for "prod + sentry off". Feel free to close this.
Thanks!
This is a bug.
Prerequisites
Description
Server error (500) does not show up in UI is errors are coming from Options.
Steps to Reproduce
Expected behavior
Toastr with "Oups, something went wrong"
Actual behavior
No visible error (for normal users), just a console 500 error.
We tracked down a possible issue, and it might "the fix" but we want you also to validate this. In case you agree, we can do a PR:
@enso-ui/forms/src/bulma/fields/SelectField.vue
is using thevue-select
component not theenso-select
component. andvue-select
component does not set error-handler:@enso-ui/select/src/bulma/EnsoSelect.vue - OK
@enso-ui/select/src/bulma/VueSelect.vue - NOT OK - missing :error-handler="errorHandler" and inject...
or
set the error-handler on
@enso-ui/forms/src/bulma/fields/SelectField.vue
?