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
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: