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

fix: Ktor method not found #54

Merged
merged 1 commit into from
Jan 5, 2024
Merged

fix: Ktor method not found #54

merged 1 commit into from
Jan 5, 2024

Conversation

1fexd
Copy link
Contributor

@1fexd 1fexd commented Jan 5, 2024

While testing, I encountered the following exception:

java.lang.NoSuchMethodError: 'void io.ktor.client.plugins.BodyProgressKt.onDownload(io.ktor.client.request.HttpRequestBuilder, kotlin.jvm.functions.Function3)'
	at io.kamel.core.fetcher.HttpFetcher$fetch$1.invokeSuspend(HttpFetcher.kt:33)
	at io.kamel.core.fetcher.HttpFetcher$fetch$1.invoke(HttpFetcher.kt)
	at io.kamel.core.fetcher.HttpFetcher$fetch$1.invoke(HttpFetcher.kt)
	at kotlinx.coroutines.flow.ChannelFlowBuilder.collectTo$suspendImpl(Builders.kt:320)
	at kotlinx.coroutines.flow.ChannelFlowBuilder.collectTo(Builders.kt)
	at kotlinx.coroutines.flow.internal.ChannelFlow$collectToFun$1.invokeSuspend(ChannelFlow.kt:60)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:806)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:710)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:697)

It seems like using Ktor 3.0.0-beta-1 instead of 2.3.7 causes this, as Kamel-Media uses 2.3.7

Copy link
Contributor

github-actions bot commented Jan 5, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@AChep
Copy link
Owner

AChep commented Jan 5, 2024

recheck

@AChep AChep merged commit bb0864f into AChep:master Jan 5, 2024
1 check passed
@AChep
Copy link
Owner

AChep commented Jan 5, 2024

I actually wanted to just wait until Ktor 3.0 goes stable and Kamel migrates to it, but reverting Ktor back is also fine to me 😄

@github-actions github-actions bot locked and limited conversation to collaborators Jan 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants