title: java.io.EOFException: End of input at line 1 column 1 in retrofit 2.0
body: <p>I don't know where is problem</p>
  
  <pre><code>{
    "success": "1",
    "wallpapers": [
      {
        "id": "1",
        "image": "http://cyphersol.com/apps/ringtona/uploads/gallery/1477685052.jpg"
      },
      {
        "id": "2",
        "image": "http://cyphersol.com/apps/ringtona/uploads/gallery/14776850521.jpg"
      },
      {
        "id": "3",
        "image": "http://cyphersol.com/apps/ringtona/uploads/gallery/14776850522.jpg"
      },
      {
        "id": "4",
        "image": "http://cyphersol.com/apps/ringtona/uploads/gallery/14776850523.jpg"
      },
      {
        "id": "5",
        "image": "http://cyphersol.com/apps/ringtona/uploads/gallery/14776850524.jpg"
      }
    ]
  }
  </code></pre>
  
  <p>I am using retrofit2.0
  interface</p>
  
  <pre><code>public interface ApiInterface {
  
      @POST("getImages")
      Call&lt;WallPaperResponse&gt; getWallpapers(@Query("id") int apiKey);
  
  }
  </code></pre>
  
  <p>Api Client</p>
  
  <pre><code>public class ApiClient {
  
  
      public static final String BASE_URL = "http://cyphersol.com/apps/ringtona/webservice/";
      private static Retrofit retrofit = null;
  
  
      public static Retrofit getClient() {
          if (retrofit==null) {
              retrofit = new Retrofit.Builder()
                      .baseUrl(BASE_URL)
                      .addConverterFactory(GsonConverterFactory.create())
                      .build();
          }
          return retrofit;
      }
  }
  </code></pre>
  
  <p>Call in to MainActivity</p>
  
  <pre><code> ApiInterface apiService =
                  ApiClient.getClient().create(ApiInterface.class);
  
          Call&lt;WallPaperResponse&gt; call = apiService.getWallpapers(1);
          call.enqueue(new Callback&lt;WallPaperResponse&gt;() {
              @Override
              public void onResponse(Call&lt;WallPaperResponse&gt; call, Response&lt;WallPaperResponse&gt; response) {
                  int statusCode = response.code();
                  List&lt;WallpapersItem&gt; wallpaper = response.body().getWallpapers();
  
                  for (int i = 0; i &lt; wallpaper.size(); i++) {
  
                      Log.e(TAG, wallpaper.get(i).getImage());
  
                  }
  
                 // recyclerView.setAdapter(new MoviesAdapter(movies, R.layout.list_item_movie, getApplicationContext()));
              }
  
              @Override
              public void onFailure(Call&lt;WallPaperResponse&gt; call, Throwable t) {
                  // Log error here since request failed
                  Log.e(TAG, t.toString());
              }
          });
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Z3s0G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z3s0G.png" alt="enter image description here"></a></p>
  
  <p><strong>dependency</strong></p>
  
  <pre><code>// retrofit, gson
  compile 'com.google.code.gson:gson:2.6.2'
  compile 'com.squareup.retrofit2:retrofit:2.0.2'
  compile 'com.squareup.retrofit2:converter-gson:2.0.2'
  </code></pre>