ktor-clients's People
ktor-clients's Issues
Redis Client on Ktor 1.1.3
Hi,
Trying to use the Redis Client on ktor 1.1.3 for session management. When I try to access Redis I get the following exception:
Exception in thread "DefaultDispatcher-worker-1" java.lang.NoSuchMethodError: io.ktor.network.sockets.TcpSocketBuilder.connect(Ljava/net/SocketAddress;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
at io.ktor.experimental.client.redis.RedisClient.createNewPipeline(Redis.kt:152)
at io.ktor.experimental.client.redis.RedisClient$postmanService$1.invokeSuspend(Redis.kt:106)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)
at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:233)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:594)
at kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.kt:60)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:742)
The build files here in this repository point to older dependencies than what ktor 1.1.3 was built with. Could this be a binary incompatibility issue?
Thanks
Ktor Client JS sends a request with method OPTIONS when a header is appended
val client = HttpClient()
val jsons = client.request<String>("http://my-url")
headers {
append("Cache-Control", "no-cache")
append("x-api-key", config.apiKey)
}
method = HttpMethod.Get
}
When I go to the network tab in Developers console, I see the
Request URL: http://my-url
Request Method: OPTIONS
Status Code: 200 OK
Remote Address: ###.###.###.###:80
Referrer Policy: no-referrer-when-downgrade
is this a bug?
Best redis client for ktor
Hi, I see that the current redis client in this repo is experimental, what is the client you recommend using for ktor nowadays? lettuce?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.