Skip to content

[bug]: AlgoliaClientException: on  #426

@Hamza-Bouzidi

Description

@Hamza-Bouzidi

Description

Hi,

We are facing an AlgoliaClientException when trying to search data containing userData as an Array.
In SearchResponse.kt, userData is a JsonObject but in the documentation it is supposed to be an Array.
In the CHANGELOG/release notes of 3.0.0-beta1, there is a fix about it but with no changes in the type :
b7b6565ab fix(specs): userData type as 'any' (algolia/api-clients-automation#2033) by @aallam

Stack :

Illegal input: Expected JsonObject, but had JsonArray as the serialized body of kotlin.collections.LinkedHashMap at element: userData

JSON input:

"userData": [
{
"banners": [
{
"cid": "XXX"
}
]
}
],

Thanks for advance,

Client

Search

Version

3.6.0

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions