Closed sentry-io[bot] closed 1 month ago
Fails | |
---|---|
:no_entry_sign: | Please add a type label to this issue. e.g. 'type: enhancement' |
:no_entry_sign: | Please add a feature label to this issue. e.g. 'feature: stats' |
Generated by :no_entry_sign: dangerJS
As discussed in Slack, many of the errors causing this crash (all of the recent ones I spot-checked) were caused by an invalid OrderItemAttribute
. In Storage, OrderItemAttribute
has non-optional name
and value
strings, but with no default string value.
It's unclear how an attribute with all of these properties nil
can get to the point where it's being saved (which causes this error). One solution could be to update the OrderItemAttribute
storage entity to use default empty strings for these non-optional attributes, to avoid the crash. (Although that doesn't resolve the underlying issue where an attribute can have these nil
properties.)
linking the previous Slack discussion: p1663056414201389-slack-C6H8C3G23 - it'd be great to find the root cause of OrderItemAttribute
being saved with nil
properties, but we haven't found it 😞
This crash has affected 311 users over the past 14 days and is currently our biggest crash (most crash events and most users affected). Internal ref: peaMlT-3M-p2
Closing this since it was archived on Sentry.
Sentry Issue: WOOCOMMERCE-IOS-1CX1
See also this Slack discussion (internal ref): p1663056414201389-slack-C6H8C3G23