-
Notifications
You must be signed in to change notification settings - Fork 636
[ISSUE #865] EM-Webhook: repair exception handling && send webhook CloudEvents #914
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
Conversation
@eight-nines please create an issue first and associate it with this pr. |
Yes, please have a look |
@eight-nines please pay attention to the CI check fail task |
try (final InputStream inputStream = WebHookController.class.getClassLoader().getResourceAsStream("eventmesh.properties")) { | ||
properties = new Properties(); | ||
properties.load(inputStream); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
每次调用读一次吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cloudEvent Producer 支持http,rocketmq等。具体是那种WebHookConfig 有配置,里面有cloudevent服务的地址,端口,topic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注意 producer的缓存,不能反复创建
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok,I fixed it
.withType(eventType) | ||
.withData(body) | ||
.build(); | ||
eventMeshHttpProducer.publish(event); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不可能只支持http
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
I'll do my best |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[ISSUE #865] EM-Webhook: repair exception handling && send webhook CloudEvents
Fixes ISSUE #<865>.
Motivation
repair exception handling && send webhook CloudEvents