You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AsyncSnapshot(ConnectionState.done, null, RangeError (end): Invalid value: Only valid value is 1: 0, #0 RangeError.checkValidRange (dart:core/errors.dart:365:9)
I think this is a manifestation of a problem that has recently been fixed, and will soon be merged in. I'll comment again when that's been done, and ask you to check again. Cheers!
slightfoot
changed the title
AsyncSnapshot<ClerkAuthProvider>(ConnectionState.done, null, RangeError (end): Invalid value: Only valid value is 1: 0, #0
RangeError thrown during API client initialization
Dec 20, 2024
Steps to reproduce
run example code
Expected results
idk... homescreen or main screen never shown
Actual results
AsyncSnapshot(ConnectionState.done, null, RangeError (end): Invalid value: Only valid value is 1: 0, #0 RangeError.checkValidRange (dart:core/errors.dart:365:9)
AsyncSnapshot(ConnectionState.done, null, RangeError (end): Invalid value: Only valid value is 1: 0, #0 RangeError.checkValidRange (dart:core/errors.dart:365:9)
I/flutter (26316): #1 List.sublist (dart:core-patch/growable_array.dart:84:38)
I/flutter (26316): #2 KeyParser.bytesFromPEM (package:dart_jsonwebtoken/src/key_parser.dart:277:30)
I/flutter (26316): #3 KeyParser.rsaPublicKeyFromPEM (package:dart_jsonwebtoken/src/key_parser.dart:82:17)
I/flutter (26316): #4 new RSAPublicKey (package:dart_jsonwebtoken/src/keys.dart:40:21)
I/flutter (26316): #5 TokenCache.initialize (package:clerk_auth/src/clerk_api/token_cache.dart:62:15)
I/flutter (26316): #6 Api.initialize (package:clerk_auth/src/clerk_api/api.dart:72:23)
I/flutter (26316): #7 Auth.initialize (package:clerk_auth/src/clerk_auth/auth.dart:85:16)
I/flutter (26316): #8 ClerkAuthProvider.create (package:clerk_flutter/src/widgets/control/clerk_auth_provider.dart:42:20)
I/flutter (26316): #9 _ClerkAuthState.initState (package:clerk_flutter/src/widgets/control/clerk_auth.dart:98:25)
I/flutter (26316): #10 StatefulElement._firstBuild (package:flutter/src/widgets/framework.da
Code sample
Code sample
[Paste your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
[Paste your output here]
The text was updated successfully, but these errors were encountered: