Skip to content
New issue

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

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

Already on GitHub? # to your account

RangeError thrown during API client initialization #64

Closed
EdwardRodr1guez opened this issue Dec 13, 2024 · 1 comment
Closed

RangeError thrown during API client initialization #64

EdwardRodr1guez opened this issue Dec 13, 2024 · 1 comment
Assignees
Milestone

Comments

@EdwardRodr1guez
Copy link

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]
@shinyford
Copy link
Collaborator

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 slightfoot self-assigned this Dec 20, 2024
@slightfoot slightfoot added this to the v0.0.5-dev milestone Dec 20, 2024
@slightfoot 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
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants