Project

General

Profile

Bug #2805

"Can't communicate to server" Message showing, when we try to request a trip.

Added by Shalu T S almost 2 years ago. Updated over 1 year ago.

Status:
Feedback
Priority:
Normal
Assignee:
Target version:
-
Start date:
05/24/2024
Due date:
05/28/2024 (about 22 months late)
% Done:

90%

Estimated time:
Spent time:
Milestone:
Backlog
Branch name:

Description

"Can't communicate to server" Message showing, when we try to request a trip.

org.json.JSONException: Index 0 out of range [0..0)
at org.json.JSONArray.get(JSONArray.java:293)
at org.json.JSONArray.getJSONObject(JSONArray.java:521)

at com.tukxi.ride.MainActivity.lambda$getPickupDistanceDuration$26$MainActivity(MainActivity.java:5248)
at com.tukxi.ride.-$$Lambda$MainActivity$_dvQYByxvi9usnR-qhGaymevqM0.setResponse(Unknown Source:6)
at com.general.files.ExecuteWebServerUrl.fireResponse(ExecuteWebServerUrl.java:434)
at com.general.files.ExecuteWebServerUrl$3.onResponse(ExecuteWebServerUrl.java:379)
at retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall$1$1.run(DefaultCallAdapterFactory.java:83)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6518)

2024-04-22 16:52:47.513 28994-28994 System.err com.tukxi.ride W at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.get(ArrayList.java:437)
at org.json.JSONArray.get(JSONArray.java:287)
... 13 more
No file chosen

Also available in: Atom PDF