posting non-string message fails silently #4

mikebridge opened this Issue Jun 1, 2012 · 3 comments


None yet

2 participants


I attempted to post a message containing a clojure data structure, but it gives me an empty string:

  (post-message myclient "myqueue" {:a 1 :b 2})

I expected it to either serialize the hash-map as a string or give an error, but right now it fails silently.

The workaround is easy enough, but it would be nice to get an error if the input is invalid.

  (post-message myclient "myqueue" (pr-str {:a 1 :b 2}))

Thanks for the report. I'm not sure if pr-str is good solution. Maybe will add type hint there... What do you think?


I'm not sure either; some further research indicates that it is more complete to turn on print-dup:*print-dup*


Well, will add type hint than.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment