catching an issue when onError catch errors with no string objects which can result in cyclic serialization errors.