Skip to content

Error Fetching a random Image #25

@BirjuVachhani

Description

@BirjuVachhani
HttpException: Error: type 'Null' is not a subtype of type 'String' in type cast
#0      new UserLinks.fromJson (package:unsplash_client/src/model/user.dart:234:37)
#1      new User.fromJson.<anonymous closure> (package:unsplash_client/src/model/user.dart:119:34)
#2      ObjectUtils.let (package:unsplash_client/src/utils.dart:10:35)
#3      new User.fromJson (package:unsplash_client/src/model/user.dart:119:12)
#4      new Photo.fromJson (package:unsplash_client/src/model/photo.dart:146:20)
#5      _deserializePhotos.<anonymous closure> (package:unsplash_client/src/photos.dart:169:54)
#6      MappedListIterable.elementAt (dart:_internal/iterable.dart:442:31)
#7      ListIterator.moveNext (dart:_internal/iterable.dart:371:26)
#8      new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:190:27)
#9      new _GrowableList.of (dart:core-patch/growable_array.dart:150:28)
#10     new List.of (dart:core-patch/array_patch.dart:40:18)
#11     ListIterable.toList (dart:_internal/iterable.dart:224:7)
#12     deserializeObjectList (package:unsplash_client/src/utils.dart:34:65)
#13     _deserializePhotos (package:unsplash_client/src/photos.dart:169:10)
#14     Request.go (package:unsplash_client/src/client.dart:212:31)
<asynchronous suspension>
#15     RequestExtension.goAndGet (package:unsplash_client/src/client.dart:383:13)
<asynchronous suspension>
#16     randomUnsplashImage (package:server/unsplash.dart:26:34)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions