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

Incompatible with ktor-client 1.3.0 #57

Closed
Djaler opened this issue Jan 14, 2020 · 4 comments
Closed

Incompatible with ktor-client 1.3.0 #57

Djaler opened this issue Jan 14, 2020 · 4 comments
Assignees

Comments

@Djaler
Copy link
Contributor

Djaler commented Jan 14, 2020

Caused by: java.lang.IllegalStateException: Unbound [HttpClientCall] is deprecated. Consider using [request<HttpResponse>(block)] in instead.
	at io.ktor.client.call.HttpClientCallKt.call(HttpClientCall.kt:132)
	at com.github.insanusmokrassar.TelegramBotAPI.bot.Ktor.base.AbstractRequestCallFactory.prepareCall$suspendImpl(AbstractRequestCallFactory.kt:23)
	at com.github.insanusmokrassar.TelegramBotAPI.bot.Ktor.base.AbstractRequestCallFactory.prepareCall(AbstractRequestCallFactory.kt)
	at com.github.insanusmokrassar.TelegramBotAPI.bot.Ktor.KtorRequestsExecutor$execute$2.invokeSuspend(KtorRequestsExecutor.kt:41)
	at com.github.insanusmokrassar.TelegramBotAPI.bot.Ktor.KtorRequestsExecutor$execute$2.invoke(KtorRequestsExecutor.kt)
	at com.github.insanusmokrassar.TelegramBotAPI.bot.settings.limiters.EmptyLimiter.limit(EmptyLimiter.kt:4)
	at com.github.insanusmokrassar.TelegramBotAPI.bot.Ktor.KtorRequestsExecutor.execute(KtorRequestsExecutor.kt:38)
@InsanusMokrassar
Copy link
Owner

Hello,

In the last version of TelegramBotAPI you can find, that currently used ktor version in library is 1.2.6 (https://github.com/InsanusMokrassar/TelegramBotAPI/blob/master/gradle.properties#L7). I plan to update library near time, but can't promise anything

@InsanusMokrassar InsanusMokrassar self-assigned this Jan 15, 2020
@InsanusMokrassar
Copy link
Owner

Fixed in 562459f and will be available after new version publication

@InsanusMokrassar
Copy link
Owner

Solved in #59 . @Djaler it would be great if you will check version 0.22.0

@Djaler
Copy link
Contributor Author

Djaler commented Jan 16, 2020

Works good, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants