Closed mikes222 closed 6 years ago
For some strange reason, WidgetTester
is returning a blank JSON body. Running the example app in Flutter or with Dart's test suite we gives us the following:
{__type: ResourceNotFoundException, message: User pool client xxxxxxxxxxxxxxxxxxxxxxxxxx does not exist.}
Anyway, better client request error handling is fixed in v0.0.16. Thanks for the suggestion.
Simple testprogram (even without changing the user pool id):
The system responds with the followin stacktrace:
Unexpected end of input (at character 1)
^
When the exception was thrown, this was the stack:
0 _ChunkedJsonParser.fail (dart:convert/runtime/libconvert_patch.dart:1362:5)
1 _ChunkedJsonParser.close (dart:convert/runtime/libconvert_patch.dart:506:7)
2 _parseJson (dart:convert/runtime/libconvert_patch.dart:30:10)
3 JsonDecoder.convert (dart:convert/json.dart:542:36)
4 JsonCodec.decode (dart:convert/json.dart:169:41)
5 Client.request (package:amazon_cognito_identity_dart/src/client.dart:50:23)