Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

couldn't see the Api request headers #8037

Closed
MelvinITOI opened this issue Jul 9, 2024 · 1 comment
Closed

couldn't see the Api request headers #8037

MelvinITOI opened this issue Jul 9, 2024 · 1 comment
Labels
bug Something isn't working P1 high priority issues at the top of the work list, actively being worked on. screen: network Issues with the Network screen.

Comments

@MelvinITOI
Copy link

class GetList {
static Future list(ev, tblName1, tblName2) async {
http.Response response;
String lasyP = isEmptyObj(ev) ? '' : jsonEncode(ev);
Map<String, String> headers = {'Content-Type': 'application/json'};
response = await http.get(Uri.parse("$apiUrl/$tblName1/$tblName2/$lasyP"),headers: headers);
if (response.statusCode == 200) {
return json.decode(response.body);
} else {
return {
'statusCode': response.statusCode,
'message': json.decode(response.body)['message']
};
}
}
}

This is my Api function, here i declare the content-type as JSON in the headers . But when i call the function its not show the headers response it only shows the OverView tab. And there the content-type is showing websocket . So how to resolve this ?


DevTools version: 2.36.0
Connected Device:
CPU / OS: arm (32 bit) android
Connected app type: Flutter native (debug build)
Dart Version: 3.5.0-299.0.dev
Flutter Version: 3.23.0-14.0.pre.30 / master
Framework / Engine: b958b8750d / 25af762ffb

@kenzieschmoll kenzieschmoll added screen: network Issues with the Network screen. bug Something isn't working P1 high priority issues at the top of the work list, actively being worked on. labels Jul 10, 2024
@kenzieschmoll
Copy link
Member

I believe this is a duplicate of #3033, which is now fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1 high priority issues at the top of the work list, actively being worked on. screen: network Issues with the Network screen.
Projects
None yet
Development

No branches or pull requests

2 participants