Coder Social home page Coder Social logo

ktor-clients's People

Contributors

e5l avatar hhariri avatar soywiz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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

@e5l

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.