Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError on failed auth response #312

Closed
kibantony opened this issue May 2, 2018 · 3 comments
Closed

TypeError on failed auth response #312

kibantony opened this issue May 2, 2018 · 3 comments

Comments

@kibantony
Copy link

Attempting a client.get with known bad tokens, I see the following error:

type 'List<dynamic>' is not a subtype of type 'List<AuthenticationChallenge>' where
I/flutter (21237):   List is from dart:core
I/flutter (21237):   List is from dart:core
I/flutter (21237):   AuthenticationChallenge is from package:http_parser/src/authentication_challenge.dart
I
I/flutter (21237): #0      AuthenticationChallenge.parseHeader (package:http_parser/src/authentication_challenge.dart:37:12)
I/flutter (21237): dart-lang/tools#298      Client.send (package:oauth2/src/client.dart:117:12)
I/flutter (21237): <asynchronous suspension>
I/flutter (21237): dart-lang/oauth2#2      BaseClient._sendUnstreamed (package:http/src/base_client.dart:171:38)
I/flutter (21237): <asynchronous suspension>
I/flutter (21237): dart-lang/tools#299      BaseClient.get (package:http/src/base_client.dart:34:5)

Flutter Doctor

[✓] Flutter (Channel beta, v0.3.1, on Mac OS X 10.12.6 16G1314, locale en-US)
• Flutter version 0.3.1 at /Users/tony/afero/flutter
• Framework revision 12bbaba9ae (12 days ago), 2018-04-19 23:36:15 -0700
• Engine revision 09d05a3891
• Dart version 2.0.0-dev.48.0.flutter-fe606f890b

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/tony/Library/Android/sdk
• Android NDK at /Users/tony/Library/Android/sdk/ndk-bundle
• Platform android-27, build-tools 27.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.4.0

[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 24.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] Connected devices (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)

• No issues found!

@nex3
Copy link
Member

nex3 commented May 2, 2018

I believe this is an issue with http_parser that got fixed in dart-lang/http_parser@e562446, but was never released. I'll see about cutting a release.

@nex3
Copy link
Member

nex3 commented May 2, 2018

This should be fixed now.

@nex3 nex3 closed this as completed May 2, 2018
@kibantony
Copy link
Author

Thanks Natalie! I'll check it out.

@mosuem mosuem transferred this issue from dart-archive/oauth2 Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants