title: Volley Error Message "null" in logcat
body: <p>I have made a post request to my friend's server. In my logcat I am getting volley error message as null and no response body or network response code. </p>
  
  <p>I have used the VolleySingleton pattern and made the right type of requests for my operation. Testing the app from postman, all seems to be working fine but running it on a physical device, I am not able to find any message in logs. </p>
  
  <p>Here's my code:</p>
  
  <pre><code>public class VolleySingleton {
  
  public RequestQueue requestQueue;
  public Context appContext;
  public static VolleySingleton instanceVolley;
  
  public VolleySingleton(Context mContext) {
      this.appContext = mContext;
      this.requestQueue = getRequestQueue();
  }
  
  public static synchronized VolleySingleton getVolleySingleton(Context context){
      if (instanceVolley == null){
          return new VolleySingleton(context);
      }
      return instanceVolley;
  }
  
  public RequestQueue getRequestQueue(){
      if (requestQueue == null){
          requestQueue = Volley.newRequestQueue(appContext.getApplicationContext());
      }
      return requestQueue;
  }
  
  public &lt;T&gt; void addToRequestQueue(Request&lt;T&gt; request){
      getRequestQueue().add(request);
      }
  
  }
  </code></pre>
  
  <p>Also, here is my post request:</p>
  
  <pre><code>JSONObject userObject = new JSONObject();
          JSONObject paramsObject = new JSONObject();
          try {
              paramsObject.put("name", fullName);
              paramsObject.put("phone", mobile_No);
              paramsObject.put("gender", Gender);
              paramsObject.put("dob", unixTime);
              userObject.put("user", paramsObject);
          } catch (JSONException e) {
              e.printStackTrace();
          }
  
          JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.POST, Constants.TING_SIGNUP_ENDPOINT, userObject, new Response.Listener&lt;JSONObject&gt;() {
              @Override
              public void onResponse(JSONObject response) {
                  Log.d(TAG, "Response is:\t " + response.toString());
                  Snackbar.make(findViewById(android.R.id.content), R.string.sign_up_msg, Snackbar.LENGTH_LONG).show();
                  new Handler().postDelayed(new Runnable() {
                      @Override
                      public void run() {
                          Intent signUpIntent = new Intent(SignUpActivity.this, LoginActivity.class);
                          signUpIntent.putExtra("fullNameKey", fullName);
                          startActivity(signUpIntent);
                      }
                  }, 3000);
              }
          }, new Response.ErrorListener() {
              @Override
              public void onErrorResponse(VolleyError error) {
                  Log.d(TAG, "Failed with error msg:\t" + error.getMessage());
                  Log.d(TAG, "Error StackTrace: \t" + error.getStackTrace());
  
                  if (error.getMessage() == null){
                      createUser();
                  }
  
              }
          }) {
              @Override
              protected Response&lt;JSONObject&gt; parseNetworkResponse(NetworkResponse response) {
                  int respCode = response.statusCode;
                  Log.d(TAG, "Response Code is:\t" + respCode);
                  return super.parseNetworkResponse(response);
              }
          };
  
          jsonObjectRequest.setRetryPolicy(new DefaultRetryPolicy(60000, 0, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));
          VolleySingleton.getVolleySingleton(this).addToRequestQueue(jsonObjectRequest);
  </code></pre>
  
  <p>Pls what is the problem? Thanks</p>