title: Android Volley Execution throw an Exception: Unparseable date
body: <p>I'm getting an exception in <strong>logcart</strong> since last few days, this exception is generated by volley lib but most interesting thing is that it does not harm execution.</p>
  
  <p>Anybody, please help why this happening.</p>
  
  <p>I'm using volley lib 1.1 with android Target SDK version 27.</p>
  
  <pre><code>minSdkVersion 16
  targetSdkVersion 27
  
  /* Volley dependency */
  compile 'com.android.volley:volley:1.1.0'
  </code></pre>
  
  <p>These logs which I'm getting</p>
  
  <pre><code>E/Volley: [538] HttpHeaderParser.parseDateAsEpoch: Unable to parse dateStr: Thu, 01 Jan 1970 05:30:00 IST, falling back to 0
                                                                         java.text.ParseException: Unparseable date: "Thu, 01 Jan 1970 05:30:00 IST"
                                                                             at java.text.DateFormat.parse(DateFormat.java:362)
                                                                             at com.android.volley.toolbox.HttpHeaderParser.parseDateAsEpoch(HttpHeaderParser.java:142)
                                                                             at com.android.volley.toolbox.HttpHeaderParser.parseCacheHeaders(HttpHeaderParser.java:100)
                                                                             at com.android.volley.toolbox.JsonObjectRequest.parseNetworkResponse(JsonObjectRequest.java:69)
                                                                             at com.android.volley.NetworkDispatcher.processRequest(NetworkDispatcher.java:132)
                                                                             at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:87)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/jGEkO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/jGEkO.png" alt="enter image description here"></a></p>
  
  <p>Volley Execution Code:</p>
  
  <pre><code>public void executeRequest(String url) {
      try {
          JsonObjectRequest jsonObjReq = new JsonObjectRequest(method, url, paramObject, new Response.Listener&lt;JSONObject&gt;() {
  
              @Override
              public void onResponse(JSONObject jsonObject) {
                  try {
                      Log.d(Constants.DEBUG_TAG, "** Result ***: " + jsonObject);
                      if (jsonObject != null) {
                          listener.onSuccess(jsonObject, someFlag);
                      } else {
                          // If response is NULL or some error in format then show server error
                          listener.onServerError(context.getResources().getString(R.string.oops_error));
                      }
                  } catch (Exception e) {
                      e.printStackTrace();
                  }
              }
          }, new Response.ErrorListener() {
  
              @Override
              public void onErrorResponse(VolleyError e) {
                  e.printStackTrace();
                  listener.onServerError(context.getResources().getString(R.string.oops_error));
              }
          }) {
  
              /**
               * Passing some request headers
               * */
              @Override
              public Map&lt;String, String&gt; getHeaders() throws AuthFailureError {
                  return headersParam;
              }
          };
  
          jsonObjReq.setRetryPolicy(new DefaultRetryPolicy(90000,
                  DefaultRetryPolicy.DEFAULT_MAX_RETRIES,
                  DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));
  
          // Adding request to request queue
          NSApplication.getInstance().addToRequestQueue(jsonObjReq);
      } catch (Exception e) {
          e.printStackTrace();
          listener.onServerError(context.getString(R.string.oops_error));
      }
  }
  </code></pre>
  
  <p>Calling Volley Method</p>
  
  <pre><code>HashMap&lt;String, String&gt; headerMap = new HashMap&lt;&gt;();
  headerMap.put("Content-Type", "application/json");
  
  VolleyConnection connection = new VolleyConnection(this, this, LOAD_ADDRESS, headerMap);
  connection.executeRequest(WebApi.GET_ADDRESS + preference.getUserId());
  </code></pre>