We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I'm getting this error: flutter: An exception occurred during a sign-in attempt: FlutterAuthException({code: FlutterAuthExceptionCode.login, message: An unknown http error occurred, details: {code:: -1002, url: https://twitter.com/oauth/authorize}})
flutter: An exception occurred during a sign-in attempt: FlutterAuthException({code: FlutterAuthExceptionCode.login, message: An unknown http error occurred, details: {code:: -1002, url: https://twitter.com/oauth/authorize}})
but my actual code is:
final auth = TwitterAuth( clientId: 'xxxx', clientSecret: 'xxxx', callbackUrl: 'xxxx://', ); void _loginTW() async { try { final resp = await auth.login(context); print("Successfully logged in $resp"); Future.delayed(const Duration(milliseconds: 500), () { Navigator.pushNamed(context, '/home', arguments: resp.token); }); } on FlutterAuthException catch (e) { switch (e.code) { case FlutterAuthExceptionCode.cancelled: print('Sign-in process was cancelled by user: ${e.toString()}'); break; case FlutterAuthExceptionCode.network: print('A network exception was thrown: ${e.toString()}'); break; case FlutterAuthExceptionCode.login: print( 'An exception occurred during a sign-in attempt: ${e.toString()}'); break; }; } }
Does it comes from my Twitter App or somewhere I can`t see ??
The text was updated successfully, but these errors were encountered:
Hi, I've seen this before. I'd check that your callbackUrl is valid. The -1002 is an error related to the webview unable to load the page, I believe.
Also, if the url is https://twitter.com/oauth/authorize this hints that it's failed to get a request token.
https://twitter.com/oauth/authorize
Let me know if you managed to get to the bottom of this. And, I'll make a note this needs to be added on the docs.
Sorry, something went wrong.
helenaford
No branches or pull requests
Hi, I'm getting this error:
flutter: An exception occurred during a sign-in attempt: FlutterAuthException({code: FlutterAuthExceptionCode.login, message: An unknown http error occurred, details: {code:: -1002, url: https://twitter.com/oauth/authorize}})
but my actual code is:
Does it comes from my Twitter App or somewhere I can`t see ??
The text was updated successfully, but these errors were encountered: