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

[BUG] Request log is not showed in inspector screen although showed on notification. #101

Open
votheanh39 opened this issue Mar 7, 2022 · 7 comments
Assignees
Labels
new issue New issue which has not been checked yet

Comments

@votheanh39
Copy link

votheanh39 commented Mar 7, 2022

Describe the bug
The number of requests made is shown on notification but when I clicked to go to inspector screen, it displayed "There are no calls to show" message

Screenshots
bug

Flutter doctor
[✓] Flutter (Channel stable, 2.10.2, on macOS 12.0.1 21A559 darwin-x64, locale en-VN)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
[✓] Android Studio (version 2021.1)
[✓] HTTP Host Availability

Dart SDK version: 2.16.1

Alice version

  • Version: 0.2.5

Devices
Android emulators. I tried API 25 and 28, 29 and it did not work

@votheanh39 votheanh39 added the new issue New issue which has not been checked yet label Mar 7, 2022
@Abdul8850
Copy link

I am also facing same issue.
Using Version: 0.2.5
Flutter Version 2.10.3
when can we expect?
let me know if i can be any help.
i am attaching screenshot
Screenshot_1647264870

@SameerShelarr
Copy link

Facing similar issue, But in my case the Alice Inspector is also not opening.

@aryanswarnkar11111
Copy link

also facing the same issue

@mochadwi
Copy link

Facing similar issue, But in my case the Alice Inspector is also not opening.

crashed in my part. when trying to click the notification dialog

@chandrabezzo
Copy link

For logging networking with toggleable UI, please try analytics_debugger

@sanjaysharmajw
Copy link

sanjaysharmajw commented Sep 15, 2023

Use http package http: any version

  1. Create new class(APIConstant) and then use this code in the class
  static Alice alice=Alice(
    showShareButton: true,
    showNotification: true,
  );
  1. Use this code in main.dart

    navigatorKey: APIConstant.alice.getNavigatorKey(),

  2. Like this:

if (kDebugMode) APIConstant.alice.onHttpResponse(response, body: jsonEncode(sendOtpReq));

  Future<SendOtpModels?> sendOtpApi(SendOtpReq  sendOtpReq) async {
    try {
      CustomLoader.showLoader("Please wait");
      final response = await http.post(Uri.parse(APIConstant.sendOtp),
        headers: APIConstant.authHeader,
        body: jsonEncode(sendOtpReq),
      );
      if (kDebugMode) APIConstant.alice.onHttpResponse(response, body: jsonEncode(sendOtpReq));

      const utf8Decoder = Utf8Decoder(allowMalformed: true);
      final decodedBytes = utf8Decoder.convert(response.bodyBytes);
      Map<String, dynamic> responseBody = json.decode(decodedBytes);
      if (response.statusCode == 200) {
        CustomLoader.closeLoader();
        return SendOtpModels.fromJson(responseBody);
      }
    }
    on TimeoutException catch (e) {
      CustomLoader.closeLoader();
      CustomLoader.showToast(e.message.toString());
    }  catch (e) {
      CustomLoader.closeLoader();
      CustomLoader.showToast(e.toString());
    }
    return null;
  }

@jhomlala
Copy link
Owner

jhomlala commented Jun 8, 2024

Can you verify please if it still happening with latest release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new issue New issue which has not been checked yet
Projects
None yet
Development

No branches or pull requests

8 participants