无网时程序会卡在await todo.save();这一行,不向下运行了
I/flutter (15296): 日志拦截: todo.save!
D/com.polidea.flutter_ble_lib.FlutterBleLibPlugin(15296): on native side observed method: writeCharacteristicForIdentifier
I/flutter (15296): 日志拦截: *** Request ***
I/flutter (15296): 日志拦截: uri: https://voaji3og.api.lncldglobal.com/1.1/classes/gxuqst
I/flutter (15296): 日志拦截: method: POST
I/flutter (15296): 日志拦截: responseType: ResponseType.json
I/flutter (15296): 日志拦截: followRedirects: true
I/flutter (15296): 日志拦截: connectTimeout: 0
I/flutter (15296): 日志拦截: sendTimeout: 0
I/flutter (15296): 日志拦截: receiveTimeout: 0
I/flutter (15296): 日志拦截: receiveDataWhenStatusError: true
I/flutter (15296): 日志拦截: extra: {}
I/flutter (15296): 日志拦截: headers:
I/flutter (15296): 日志拦截: X-LC-Id: vOaJI3OgY1lJ4dxFDQERvB3O-MdYXbMMI
I/flutter (15296): 日志拦截: User-Agent: LeanCloud-Flutter-SDK/0.7.6
I/flutter (15296): 日志拦截: X-LC-Sign: 5a34a7bc29534410541948af01a730a3,1637074085567
I/flutter (15296): 日志拦截: X-LC-Session: uu27giavtdxpkmvgtxc5cpy60
I/flutter (15296): 日志拦截: content-type: application/json
I/flutter (15296): 日志拦截: data:
I/flutter (15296): 日志拦截: {sports_type: 0, start_time: 1637074040, sensor_data: {__op: Add, objects: [{time: 1637074042, vo2: 56, br: 59, o2: 4.099999740719795, tvl: 66.0999984741211, tcb: 61.5, flow: 52.29999923706055, ve: 38.5, co2: 5.099999904632568, rer: 44.0, eto2: 41.29999923706055, pressure: 48.599998474121094, temp: 541, rh: 49}, {time: 1637074047, vo2: 56, br: 59, o2: 4.099999740719795, tvl: 66.0999984741211, tcb: 61.5, flow: 52.29999923706055, ve: 38.5, co2: 5.099999904632568, rer: 44.0, eto2: 41.29999923706055, pressure: 48.599998474121094, temp: 541, rh: 49}, {time: 1637074052, vo2: 56, br: 59, o2: 4.099999740719795, tvl: 66.0999984741211, tcb: 61.5, flow: 52.29999923706055, ve: 38.5, co2: 5.099999904632568, rer: 44.0, eto2: 41.29999923706055, pressure: 48.599998474121094, temp: 541, rh: 49}, {time: 1637074057, vo2: 56, br: 59, o2: 4.099999740719795, tvl: 66.0999984741211, tcb: 61.5, flow: 52.29999923706055, ve: 38.5, co2: 5.099999904632568, rer: 44.0, eto2: 41.29999923706055, pressure: 48.599998474121094, t
I/flutter (15296): 日志拦截:
I/flutter (15296): 日志拦截: *** DioError ***:
I/flutter (15296): 日志拦截: uri: https://voaji3og.api.lncldglobal.com/1.1/classes/gxuqst
I/flutter (15296): 日志拦截: DioError [DioErrorType.other]: SocketException: Failed host lookup: 'voaji3og.api.lncldglobal.com' (OS Error: No address associated with hostname, errno = 7)
I/flutter (15296): 日志拦截:
E/flutter (15296): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: 'package:flutter/src/foundation/assertions.dart': Failed assertion: line 401 pos 15: 'exception != null': is not true.
E/flutter (15296): #0 AssertionError.doThrowNew (dart:core-patch/errors_patch.dart:46:39)
E/flutter (15296): #1 AssertionError.throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter (15296): #2 new FlutterErrorDetails (package:flutter/src/foundation/assertions.dart:401:15)
E/flutter (15296): #3 AppInit.makeDetails (package:voco_flutter/init/app_init.dart:49:12)
E/flutter (15296): #4 AppInit.catchException. (package:voco_flutter/init/app_init.dart:31:23)
E/flutter (15296): #5 _rootRunBinary (dart:async/zone.dart:1386:13)
E/flutter (15296): #6 _CustomZone.runBinary (dart:async/zone.dart:1272:19)
E/flutter (15296): #7 runZonedGuarded. (dart:async/zone.dart:1760:18)
E/flutter (15296): #8 _CustomZone.handleUncaughtError (dart:async/zone.dart:1241:19)
E/flutter (15296): #9 Future.propagateToListeners (dart:async/futureimpl.dart:621:16)
E/flutter (15296): #10 Future.completeError (dart:async/futureimpl.dart:550:5)
E/flutter (15296): #11 completeOnAsyncError (dart:async-patch/asyncpatch.dart:274:13)
E/flutter (15296): #12 DataCollectionPagePageState.StopConfirmationDialog.. (package:vocoflutter/page/home/data_collection.dart)
E/flutter (15296):
E/flutter (15296):
I/flutter (15296): 日志拦截: event = [162, 196, 147, 97, 56, 0, 59, 0, 157, 239, 39, 61, 51, 51, 132, 66, 0, 0, 118, 66, 51, 51, 81, 66, 0, 0, 26, 66, 96, 229, 80, 61, 51, 51, 15, 66, 0, 0, 48, 66, 51, 51, 37, 66, 154, 153, 33, 66, 102, 102, 66, 66, 29, 2, 49, 0]
I/flutter (15296): 日志拦截: 呼吸数据包 time = 1637074082
I/flutter (15296): 日志拦截: 呼吸数据包 vo2 = 56
I/flutter (15296): 日志拦截: 呼吸数据包 br = 59
I/flutter (15296): 日志拦截: 呼吸数据包 o2 = 4.099999740719795
I/flutter (15296): 日志拦截: 呼吸数据包 tvl = 66.0999984741211
I/flutter (15296): 日志拦截: 呼吸数据包 tcb = 61.5
I/flutter (15296): 日志拦截: 呼吸数据包 flow = 52.29999923706055
I/flutter (15296): 日志拦截: 呼吸数据包 ve = 1637074082
I/flutter (15296): 日志拦截: 呼吸数据包 co2 = 5.099999904632568
I/flutter (15296): 日志拦截: 呼吸数据包 vco2 = 35.79999923706055
I/flutter (15296): 日志拦截: 呼吸数据包 eto2 = 41.29999923706055
I/flutter (15296): 日志拦截: 呼吸数据包 etco2 = 40.400001525878906
I/flutter (15296): 日志拦截: 呼吸数据包 pressure = 48.599998474121094
I/flutter (15296): 日志拦截: 呼吸数据包 temp = 541
I/flutter (15296): 日志拦截: 呼吸数据包 rh = 49
I/flutter (15296): 日志拦截: K50 状态 = 6:0