question

saad-bin-iqbal avatar image
saad-bin-iqbal asked saad-bin-iqbal commented

onTransportError(Callback.java:112): Exception {"message":"401 Unauthorized"}

I'm adding Sandbox clover account on Emulator device and I try to login using correct credentials then I get the below error saying..
I'm able to login on Sandbox environment online using the same credentials. Please consider attached unauthorize-401.png.

08-02 06:24:37.816 1592-1612/com.clover.engine I/CloverOkHttpClient: execute(CloverOkHttpClient.java:192): Response code: 40108-02 06:24:37.816 1592-1612/com.clover.engine I/CloverOkHttpClient: execute(CloverOkHttpClient.java:199): 401 Unauthorized08-02 06:24:37.856 1592-1592/com.clover.engine E/LoginFragment: onTransportError(Callback.java:112): Exception {"message":"401 Unauthorized"}    com.clover.common.http.JsonHttpClientException: {"message":"401 Unauthorized"}        at com.clover.engine.io.http.CloverOkHttpClient.execute(CloverOkHttpClient.java:205)        at com.clover.engine.io.http.CloverOkHttpClient.execute(CloverOkHttpClient.java:173)        at com.clover.engine.io.http.CloverOkHttpClient.execute(CloverOkHttpClient.java:168)        at com.clover.engine.io.http.CloverOkHttpClient.get(CloverOkHttpClient.java:329)        at com.clover.engine.authenticator.LoginFragment$8.action(LoginFragment.java:408)        at com.clover.common.http.AsyncTaskAdapter.doInBackground(AsyncTaskAdapter.java:76)        at com.clover.common.http.AsyncTaskAdapter.doInBackground(AsyncTaskAdapter.java:21)        at android.os.AsyncTask$2.call(AsyncTask.java:288)        at java.util.concurrent.FutureTask.run(FutureTask.java:237)        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)        at java.lang.Thread.run(Thread.java:841)
Auth
unauthorize-401.png (63.0 KiB)
2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

saad-bin-iqbal avatar image saad-bin-iqbal commented ·

@Jeffrey Blattman, Please help me out.

0 Likes 0 ·
saad-bin-iqbal avatar image saad-bin-iqbal commented ·
0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community