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
final response =await _dio.get<List<dynamic>>(
ApiEndpoints.tournaments,
);
it would not print nice but all will be printed in one line.
Reason:
In the case dio is decoding json, the dio_logger will get string like [{id: 1}, {id: 2}]. Note the missing "" from json. And it would crash with FormatException on line 129 and go in catch clause:
Workaround is to always get the string and decode it by yourself
Which defies the purpose of using dio in the first place, just to address this issue.
Is there any chance this can be addressed or is there any other workaround?
When using
it would not print nice but all will be printed in one line.
Reason:
In the case dio is decoding json, the dio_logger will get string like
[{id: 1}, {id: 2}]
. Note the missing""
from json. And it would crash with FormatException on line 129 and go in catch clause:Workaround is to always get the string and decode it by yourself:
The text was updated successfully, but these errors were encountered: