I got that error message: End of input at line 1 column 1 path $
I am new in android.
There is something that I can get in postman as json but I can't get in android via retrofit2.
This is the function, that causes the problem
@GET("getRequestsByPassenger/{id}")
    suspend fun getRequestsByPassenger(
        @Path("id") id: Int
    ) : List<ServiceRequest>
This is the Retrofit2:
private val okHttpClient = OkHttpClient.Builder()
        .addInterceptor { chain ->
            var request = chain.request()
            if (!token.isNullOrEmpty()) {
                request = request.newBuilder()
                    .addHeader("Authorization", AUTH)
                    .build()
            }
            chain.proceed(request)
        }.build()
    val gson = GsonBuilder().setLenient().create()
    val INSTANCE: Api by lazy {
        val retrofit = Retrofit.Builder()
            .baseUrl(BASE_URL)
            .addConverterFactory(GsonConverterFactory.create(gson))
            .client(okHttpClient)
            .build()
        retrofit.create(Api::class.java)
    }
I am looking that problem the whole day. Thank you for your help!
 
    