Description
Description
When calling consecutive times :
func search<T: Codable>(
searchMethodParams: SearchMethodParams,
requestOptions: RequestOptions? = nil
) async throws -> SearchResponses<T>
we receive this error randomly after the first response (which is always successful)
decodingFailure : Unable to decode response decodable object: The data couldn’t be read because it isn’t in the correct format.
in our front end we are navigating back and forth a view, so whenever user loads a view we perform a searchRequest in one of our indices.
This error is caught by first time in your code in this line: https://github.com/algolia/algoliasearch-client-swift/blob/main/Sources/Core/Networking/Transporter.swift#L139 in your code
one thing I notice that error is not retryable, but I couldn't guess the reason of the error, if there is something missing from our side. One thing to mention is: data request is always the same, but sometimes we are able to get a response, othertimes we get this error, and other note is that first call we always get proper data, subsequent calls (meaning navigating back and forth from our side) might fail.
Client
SearchClient
Version
9.18.1