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
Importers can signal failure for specific reasons with various subclasses of CopyExceptionWithFailureReason, some of which are treated as restartable errors. For example, InvalidTokenException and DestinationMemoryFullException signal a token expiry (which requires reauth and a restart) and a full destination (which requires the user to create space and restart) respectively.
Generic Importers (added in #1389) supports throwing InvalidTokenException on a 401 response with an invalid_token error from the API, but does not support DestinationMemoryFullException.
Proposal
To support destinations using Generic Importers creating a DestinationMemoryFullException, the API could be extended to define another error code and error name combination - e.g. 400 and destination_full. The Generic Importers code would then need to be extended to support handling this case.
The text was updated successfully, but these errors were encountered:
Background
Importers can signal failure for specific reasons with various subclasses of
CopyExceptionWithFailureReason
, some of which are treated as restartable errors. For example,InvalidTokenException
andDestinationMemoryFullException
signal a token expiry (which requires reauth and a restart) and a full destination (which requires the user to create space and restart) respectively.Generic Importers (added in #1389) supports throwing
InvalidTokenException
on a 401 response with aninvalid_token
error from the API, but does not supportDestinationMemoryFullException
.Proposal
To support destinations using Generic Importers creating a
DestinationMemoryFullException
, the API could be extended to define another error code and error name combination - e.g. 400 anddestination_full
. The Generic Importers code would then need to be extended to support handling this case.The text was updated successfully, but these errors were encountered: