-
Notifications
You must be signed in to change notification settings - Fork 19
Cannot expose HealthChecks over the event bus #49
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
Comments
@afloarea can you try to replace: to -->
? |
I think we could fix the data object to get this constructor and make the data objects easier to create from json, now the constructor for json object is not mandary. |
Thanks for the quick reply @gaol if I put @vietj Are you suggesting to add a constructor with JsonObject to the Also, it's not very clear to me what |
the one we need. it means it can be converted back and forth to JSON, but that is a thing for our code generator and not for the event-bus that requires introspectability of the type which data object do not provide. |
I had a look over the
Going from JSON to
Another thing is, even if this change were to be implemented, the documentation on the website would still suggest that you can reply directly with a |
Questions
"Do not use this issue tracker to ask questions, instead use one of these channels. Questions will likely be closed without notice." - This might not be the time or the place, but I've noticed that the Discord invitation on vertx.io is invalid and/or expired. Is there some other way to ask questions?
Version
4.3.4
Context
I encountered an exception while trying to expose health checks over the event bus.
Do you have a reproducer?
Yes, I have the following test (the middle part is copied from vertx.io docs):
Steps to reproduce
Run the test. It fails and logs this exception:
Extra
I noticed that both
Status
andCheckResult
are annotated with@DataObject
, however none of them can be sent over the event bus (fails withNo message codec for type
, also I haven't added vertx-codegen as a dependency).I also tried a workaround by creating a custom
MessageCodec
, but looking at theCheckResult
class, it does not have any method/constructor which takes aJsonObject
(am I missing something? 🤔 I thought@DataObject
sort of implies this)Lastly, with some minimal guidance I am open to contributing a fix for this.
Thank you for your time, attention and for the Vert.x project 🙏 🤘
The text was updated successfully, but these errors were encountered: