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]: When using SearchSingleIndex, passing offset & length still requires the key 'page' #425

Closed
andrasfecz opened this issue Sep 16, 2024 · 1 comment · Fixed by algolia/api-clients-automation#3760
Assignees
Labels
bug Something isn't working

Comments

@andrasfecz
Copy link

Description

When passing offset and length as parameters into searchSingleIndex getting an error about 'page' missing. Page should not be required if using offset & length.

Happens with:
implementation "com.algolia:algoliasearch-client-kotlin:3.3.0"

Client

Search

Version

3.3.0

Relevant log output

com.algolia.client.exception.AlgoliaClientException: Illegal input: Key page is missing in the map.
	at com.algolia.client.exception.internal.ThrowableKt.asClientException(Throwable.kt:10)
	at com.algolia.client.transport.internal.KtorRequester.onError(KtorRequester.kt:109)
	at com.algolia.client.transport.internal.KtorRequester.execute(KtorRequester.kt:74)
	at com.algolia.client.transport.internal.KtorRequester$execute$1.invokeSuspend(Unknown Source:14)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:102)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702)
Caused by: io.ktor.serialization.JsonConvertException: Illegal input: Key page is missing in the map.
@andrasfecz andrasfecz added the bug Something isn't working label Sep 16, 2024
@Fluf22 Fluf22 self-assigned this Sep 16, 2024
@Fluf22
Copy link
Contributor

Fluf22 commented Sep 16, 2024

Hey! 👋🏻
Thank you very much for the report. I managed to reproduce, I'm looking into it

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

Successfully merging a pull request may close this issue.

2 participants