Open leosilvadev opened 8 years ago
thanks, we'll fix it here, and also build this to maven central soon.
Great! thanks!
That's not an error, it's just that we expect String message body, not JsonObject. Write your json as a String, you can use JsonObject().encode() ot JsonObject.toString() for that.
I should probably write about that in the readme file.
Yeah, it really doesn't make sense, but the error happens even when I try to call this:
client.sendMessage('Authorizations', 'anystring', {
println it.result()
})
I am not with my notebook now, but asap I will check the groovy generated code, but probably it's wrapping the messaging in a JsonObject (since I got something like this using a different codec)
We could add an override for JsonObject
Using the groovy client we face an error:
I 'fixed' that here, but it's probably not a real fixing (I change the Message to Message at SqsQueueProducerVerticle.kt:33