From def733f7c530216ddc79f66ad9f0a21d08172599 Mon Sep 17 00:00:00 2001 From: debuggerx Date: Thu, 17 Feb 2022 17:45:28 +0800 Subject: [PATCH] fix: [Can't get package info after upgrgade to v1.3.1](https://github.com/fluttercommunity/plus_plugins/issues/747) --- app/lib/http/api.dart | 2 +- app/pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/http/api.dart b/app/lib/http/api.dart index 215d6ea..6103ba8 100644 --- a/app/lib/http/api.dart +++ b/app/lib/http/api.dart @@ -53,7 +53,7 @@ class Api { T? res; try { if (resp.statusCode != HttpStatus.ok && resp.bodyBytes.length == 0) - throw HttpErrorCode(resp.statusCode, message: 'No resp body'); + throw HttpErrorCode(resp.statusCode, message: 'No resp body from ${resp.request!.url.path}'); var decodeBody = json.decode(utf8.decode(resp.bodyBytes)); res = decodeBody is Map ? builder(decodeBody) : builder({'list': decodeBody}); } catch (e) { diff --git a/app/pubspec.yaml b/app/pubspec.yaml index 6b7f990..f828cde 100644 --- a/app/pubspec.yaml +++ b/app/pubspec.yaml @@ -30,7 +30,7 @@ dependencies: xdg_directories: ^0.2.0 gsettings: 0.2.3 provider: ^6.0.2 - package_info_plus: ^1.3.0 + package_info_plus: 1.3.1 easy_localization: ^3.0.0 glass_kit: ^2.0.1 rect_getter: ^1.0.0