-
Notifications
You must be signed in to change notification settings - Fork 101
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
http client fails with ring/ring-jetty-adapter 1.11.0 #250
Comments
Encountering this issue, too. Upgrading to ring-jetty-adapter 1.11.0 causes the exception
A revert back to ring-jetty-adapter 1.10.0 resolves it. |
Thanks, and sorry about this frustration. I'm probably stating what you already realize, but
Solving the problem of aws-api's transitive dependency on jetty 9.4.x is our top priority for our next release. |
Any idea when the transitive dependency will be solved? Currently we cannot use I saw there was an effort to move the HTTP client to the JDK version As an aside, Is there any example code of how to use the (defprotocol HttpClient
(-submit [_ request channel]
"Submit an http request, channel will be filled with response. Returns ch.
Request map:
:scheme :http or :https
:server-name string
:server-port integer
:uri string
:query-string string, optional
:request-method :get/:post/:put/:head/:delete
:headers map from downcased string to string
:body ByteBuffer, optional
:timeout-msec opt, total request send/receive timeout
:meta opt, data to be added to the response map
content-type must be specified in the headers map
content-length is derived from the ByteBuffer passed to body
Response map:
:status integer HTTP status code
:body ByteBuffer, optional
:headers map from downcased string to string
:meta opt, data from the request
On error, response map is per cognitect.anomalies.
Alpha. This will absolutely change.")
(-stop [_] "Stops the client, releasing resources")) |
I have a fork of |
+1 on this, we can't use |
@bhurlow Does my fork work for you? |
Hello, it's been about 7 months since this comment. Is there any solution for this issue yet? |
(In the mean time, for us Tobias' fork worked fine on Jetty 11. Jetty 11 reached end of community support as of January 2024. Per #181 (comment), we forked Tobias' Jetty 11 fork and made it work with Jetty 12.) |
We have just released a beta release which introduces a Java-native http client. With this release, Jetty is no longer by default a transitive dependency. @dharrigan if time permits, could you please verify whether this release solves your issue? Thanks. (I will leave this issue open for the time being until we verify.) |
Fixed in version 0.8.711 |
Thank you for your interest in helping to improve Cognitect's aws-api!
Dependencies
Clojure CLI version 1.11.1.1435
Description with failing test case
As ring is now available as a
1.11.0
release (along with the dependencyring/ring-jetty-apapter 1.11.0
), when upgrading deps and then starting the http-client (as a dependency injected resource), the following occurs:Reverting back to
ring/ring-jetty-adapter {:mvn/version "1.10.0"}
fixes the problem.Thank you.
-=david=-
The text was updated successfully, but these errors were encountered: