smitajoshi12 commented on PR #6944:
URL: https://github.com/apache/ozone/pull/6944#issuecomment-2232895063

   > Extending on the above, if we use `||` it means the error would be thrown 
in either if it gets rejected, or if it is cancelled. But this is not correct, 
as there might be scenarios where the API might reject the Promise, but the 
error is not cancellation.
   > 
   > In that scenario we do not want to throw the error, but fallback to the 
default values. We want to throw the error only when the request is rejected as 
the call was cancelled.
   
   If one api fails because Internal server error or any other issue response 
is blank but UI looks this way It should catch error or throw error
   
   
![image](https://github.com/user-attachments/assets/0477d84e-c40c-4821-9ac6-a79483b56de0)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to