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
Dio can show the message which is sent by user or if don't then don't show the message as that is not acceptable . as random message is visible on users screen.
Solution Brainstorm
Just remove the hardcoded message from Dio
factory DioException.requestCancelled({
required RequestOptions requestOptions,
required Object? reason,
StackTrace? stackTrace,
}) =>
DioException(
type: DioExceptionType.cancel,
message: 'The request was manually cancelled by the user.',
requestOptions: requestOptions,
response: null,
error: reason,
stackTrace: stackTrace,
);
The text was updated successfully, but these errors were encountered:
someshswami9
changed the title
Remove The request was manually cancelled by the user. for canceltoken.cancel()
Remove the message 'The request was manually cancelled by the user.' for canceltoken.cancel()
May 16, 2024
Request Statement
Dio can show the message which is sent by user or if don't then don't show the message as that is not acceptable . as random message is visible on users screen.
Solution Brainstorm
Just remove the hardcoded message from Dio
factory DioException.requestCancelled({
required RequestOptions requestOptions,
required Object? reason,
StackTrace? stackTrace,
}) =>
DioException(
type: DioExceptionType.cancel,
message: 'The request was manually cancelled by the user.',
requestOptions: requestOptions,
response: null,
error: reason,
stackTrace: stackTrace,
);
The text was updated successfully, but these errors were encountered: