I have built one asp.net web api for my angular application which is working fine. I'm going to use same api in Flutter but surprisingly I'm not getting full object in response.body. I observed that, response.body is containing only 1023 chars.
final response = await http.post(
apiUrl,
body: body,
headers: {
'Content-Type': 'application/json;',
'Accept': 'application/json ',
'Authorization': 'Bearer $_token',
});
print(response.body) // response.body string length is 1023.
Thank in advance looking at my issue.
printmethod has a length limit. If you have long text, you should usedebugPrint. Also, there might be a response error in the body