devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Rest API Calls are not Logged

Open Gagnar1999 opened this issue 1 year ago • 1 comments

Hello Flutterians i am facing an strange issue where i am unable to see api calls in dev tools.


DevTools version: 2.34.3 IDE: Android-Studio Connected Device: CPU / OS: arm64 (64 bit) android Connected app type: Flutter native (debug build) Dart Version: 3.4.0 Flutter Version: 3.22.0 / stable Framework / Engine: 5dcb86f68f / f6344b75dc

Gagnar1999 avatar May 16 '24 06:05 Gagnar1999

@CoderDake

kenzieschmoll avatar May 16 '24 16:05 kenzieschmoll

@Gagnar1999 could you please provide an example of the api calls? Some code to help reproduce this would go a long way :)

CoderDake avatar May 21 '24 18:05 CoderDake

The issue is when i call api through http/dio network library it should be visible in the network tab in dev tools section but instead of showing any api call it just show internet address calls only. image

Gagnar1999 avatar May 22 '24 05:05 Gagnar1999

also i want one more feature request can you guys removed these internet address logs from network tab it causes issue when there are multiple api calls @CoderDake

Gagnar1999 avatar May 22 '24 05:05 Gagnar1999

Progress for additional network logging support is is being tracked here: https://github.com/flutter/devtools/issues/7764

I'll close this as a duplicate.


RE your additional request: Those requests can be filtered out using the a -type:ws filter. That will hide those logs you don't want to see Screenshot 2024-05-22 at 9 19 41 AM

CoderDake avatar May 22 '24 13:05 CoderDake

@CoderDake can you correct link where issue is being tracked, you linked and closed this issue as duplicate of itself? This issue only happen with Android Emulator and latest Flutter 3.22, working fine on real device.

on Flutter 3.19 showing rest api and DO NOT have InternetAddress(...) on Flutter 3.22 showing InternetAddress(...) and DO NOT have rest api

Update: issue happen after app run few seconds. request call immediately when app running will showing, but later not.

quyenvsp avatar Jun 18 '24 04:06 quyenvsp