Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: AlgoliaClientException: on #426

Open
Hamza-Bouzidi opened this issue Oct 9, 2024 · 0 comments
Open

[bug]: AlgoliaClientException: on #426

Hamza-Bouzidi opened this issue Oct 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Hamza-Bouzidi
Copy link

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

@Hamza-Bouzidi Hamza-Bouzidi added the bug Something isn't working label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant