Hi i am using `api(platform("io.arrow-kt:arrow-st...
# arrow
t
Hi i am using
api(platform("io.arrow-kt:arrow-stack:1.2.0-RC"))
api("io.arrow-kt:arrow-core")
api("io.arrow-kt:arrow-core-retrofit")
I have requirement where i must access the response HTTP headers returned from my retrofit api calls so i refactored my return types as follows:-
@Headers(HEADER_ANNOTATION_ACCEPT)
@GET("annotations")
suspend fun annotations(@QueryMap queryParameters: Map<String, String>): ResponseE<CallError, List<Annotation>>
however this change generates a runtime error:-
Unable to create call adapter for retrofit2.Call<arrow.retrofit.adapter.either.ResponseE<arrow.retrofit.adapter.either.networkhandling.CallError, java.util.Lis...
Caused by: kotlinx.serialization.SerializationException: Serializer for class 'CallError' is not found.