-
Notifications
You must be signed in to change notification settings - Fork 241
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
IllegalArgumentException and seemingly empty response body from :raw-stream example in docs #605
Comments
Just took a quick look.
It's like the |
Got it probably, you have to use @KingMob : I think you might be interested by this, seems like a breaking change for people using |
We duplicated https://github.com/clj-commons/byte-streams/blob/master/src/byte_streams.clj#L60-L62 |
I'd rather not add extra work to keep a deprecated namespace in sync. What about |
Thanks. Works with the new namespace. In response I added a related issue upstream Deprecation of byte-streams namespace is undocumented |
So, the documentation is fixed by #60. Longer term, I don't want to manually keep the old ns in sync, but we have other options. One is something like using Potemkin is more powerful, since it handles watching changes to the underlying vars, ferrying over metadata, etc. but |
AFAIK |
@arnaudgeiser Well, it's not a direct dep, but Zach has bits and pieces of Potemkin's code all over his repos. E.g., check utils.clj and you'll find early proto-versions of defprotocol+, deftype+, defrecord+, definterface+, and doit. I think he kept copying his util fns around and eventually built potemkin out of them. If anything, I wonder if using potemkin might be preferable given that, since its versions of fns are smarter. For example, the byte-streams version of Regardless, I'm fine with keeping it simple and doing |
Actually, I don't have any strong opinions here. |
@arnaudgeiser Silly me, |
@arnaudgeiser After chatting with borkdude, I think we should just wait and see if this is even worth the hassle. |
Clojure version 1.11.1
Clojure CLI version 1.11.1.1149
OpenJDK Runtime Environment build 18.0.1.1+2
OpenJDK 64-Bit Server VM build 18.0.1.1+2, mixed mode
Start a server as described earlier in docs, serving a delayed range of numbers at
http://localhost:10000/numbers
. Open a clean repl and paste in the following:If I strip off the call to
bs/to-string
it no longer throws, but yields an empty vector.The text was updated successfully, but these errors were encountered: