Retrofit2 Android: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
I know this is not the first time someone asking about this problem but with Retrofit2 I can't find the right solution to my problem. I followed a online tutorial and it worked just fine. When I applied same code to my own endpoint i get this exception: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $ I don't know how to solve this. Interface: public interface MyApiService { // Is this right place to add these headers? @Headers({"application-id: MY-APPLICATION-ID", "secret-key: MY-SECRET-KEY", "application-type: REST"}) @GET("Music") Call