SpinlockLabs / github.dart

GitHub Client Library for Dart
https://pub.dev/packages/github
MIT License
408 stars 142 forks source link

cast exception seen when calling github.issue.addLabelsToIssue() #410

Closed devoncarew closed 2 months ago

devoncarew commented 2 months ago

I'm starting to see a cast exception when calling github.issue.addLabelsToIssue(). I suspect an github api / encoding change? Calls from just a few hours ago were working.

type '_Map<String, dynamic>' is not a subtype of type 'List<dynamic>'
#0      GitHub.requestJson (package:github/src/common/github.dart:335:33)
<asynchronous suspension>
#1      GithubService.addLabelsToIssue (package:sdk_triage_bot/src/github.dart:[40](https://github.com/dart-lang/sdk/actions/runs/10607949422/job/29401239405#step:6:41):5)
<asynchronous suspension>
...
github-actions[bot] commented 2 months ago

👋 Thanks for reporting! @robrbecker will take a look.

devoncarew commented 2 months ago

Ah, I believe this was due to a bug in my code.