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
When a request to access a bubble fails because the bubble has been terminated, the Guardian instructs the data server to delete the bubble. If the bubble is already deleted the Guardian responds to the client with the message "bubble has been terminated - send a 'terminate' request to delete the bubble data". Instead it should simply respond with "bubble has been terminated".
if(file.permissions.bubbleTerminated()){constterminateOptions=(method==='terminate') ? params.options : undefined;returnthis.dataServer.terminate(params.contract,terminateOptions).then(()=>{if(method==='terminate')return;elsethrownewBubbleError(ErrorCodes.BUBBLE_ERROR_BUBBLE_TERMINATED,'bubble has been terminated');}).catch((err)=>{if(method==='terminate')return_validateDataServerError(err);elsethrownewBubbleError(ErrorCodes.BUBBLE_ERROR_BUBBLE_TERMINATED,"bubble has been terminated - send a 'terminate' request to delete the bubble data");})}
The Guardian should pass the {silent: true} option to the data server if the method is not 'terminate'. This will ensure the data server does not reject if the bubble is already deleted, and will restrict the longer error message to only when the bubble exists and the data server failed to delete it.
The text was updated successfully, but these errors were encountered:
Minor error message issue.
When a request to access a bubble fails because the bubble has been terminated, the Guardian instructs the data server to delete the bubble. If the bubble is already deleted the Guardian responds to the client with the message "bubble has been terminated - send a 'terminate' request to delete the bubble data". Instead it should simply respond with "bubble has been terminated".
The Guardian should pass the
{silent: true}
option to the data server if the method is not 'terminate'. This will ensure the data server does not reject if the bubble is already deleted, and will restrict the longer error message to only when the bubble exists and the data server failed to delete it.The text was updated successfully, but these errors were encountered: