Skip to content

listCommentsByPullRequest Crashing #389

@MousyBusiness

Description

@MousyBusiness

listCommentsByPullRequest Crashing.

From the GitHub docs
image

From the code
image

 type '_Map<String, dynamic>' is not a subtype of type 'String' in type cast
flutter: └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
flutter: [10:14:08.259] #0      _$LinksFromJson (package:github/src/common/model/repos_contents.g.dart:47:66)
#1      new Links.fromJson (package:github/src/common/model/repos_contents.dart:87:57)
#2      _$PullRequestCommentFromJson (package:github/src/common/model/pulls.g.dart:186:19)
#3      new PullRequestComment.fromJson (package:github/src/common/model/pulls.dart:258:7)
#4      _MapStream._handleData (dart:async/stream_pipe.dart:213:31)
#5      _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:153:13)
#6      _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
#7      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#8      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions