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

Error making IAM-authenticated calls on Android #1041

Closed
lpatino10 opened this issue Feb 26, 2019 · 1 comment
Closed

Error making IAM-authenticated calls on Android #1041

lpatino10 opened this issue Feb 26, 2019 · 1 comment
Assignees

Comments

@lpatino10
Copy link
Contributor

Pulled from https://stackoverflow.com/questions/54862363/ibm-watson-asynchronous-requests-fail

Newer Android OS versions prevent users from making network requests on the main thread to improve UI responsiveness. When users call our APIs through the Java SDK and use one of the asynchronous forms of execution, that satisfies that requirement and allows everything to run.

The issue posted above is that the underlying code for IAM authentication is not explicitly run on a new thread, so a user can call an endpoint asynchronously, but will still get the android.os.NetworkOnMainThreadException thrown.

@watson-github-bot
Copy link
Member

🎉 This issue has been resolved in version 7.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants