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
E/Volley: [35258] HttpHeaderParser.parseDateAsEpoch: Unable to parse dateStr: -1, falling back to 0
java.text.ParseException: Unparseable date: "-1" (at offset 0)
at java.text.DateFormat.parse(DateFormat.java:579)
at com.android.volley.toolbox.HttpHeaderParser.parseDateAsEpoch(HttpHeaderParser.java:142)
at com.android.volley.toolbox.HttpHeaderParser.parseCacheHeaders(HttpHeaderParser.java:100)
at com.goeventz.volley.VolleyRequest$3.parseNetworkResponse(VolleyRequest.java:121)
at com.android.volley.NetworkDispatcher.processRequest(NetworkDispatcher.java:132)
at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:87)
The text was updated successfully, but these errors were encountered:
That's not a thrown exception; it's a logged warning. The server's response includes either a "Date: -1" or "Expires: -1" header. Those are considered invalid date formats, and thus Volley treats it as a "0" per the RFC.
Ankit-Kr-Verma
changed the title
Android Volley Execution throw an Exception: Unparseable date
Android Volley Execution gives Unparseable date warning
Sep 19, 2018
E/Volley: [35258] HttpHeaderParser.parseDateAsEpoch: Unable to parse dateStr: -1, falling back to 0
java.text.ParseException: Unparseable date: "-1" (at offset 0)
at java.text.DateFormat.parse(DateFormat.java:579)
at com.android.volley.toolbox.HttpHeaderParser.parseDateAsEpoch(HttpHeaderParser.java:142)
at com.android.volley.toolbox.HttpHeaderParser.parseCacheHeaders(HttpHeaderParser.java:100)
at com.goeventz.volley.VolleyRequest$3.parseNetworkResponse(VolleyRequest.java:121)
at com.android.volley.NetworkDispatcher.processRequest(NetworkDispatcher.java:132)
at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:87)
The text was updated successfully, but these errors were encountered: