Closed tranminhhoainhan closed 3 years ago
Describe the bug I can send message to a Azure Service Bus with the sas key (authorization header) . But when setup same things in Web hook destination it always return 401 error
""[ERROR][com.amazon.opendistroforelasticsearch.alerting.destination.factory.CustomWebhookDestinationFactory.publish(CustomWebhookDestinationFactory.java:45)] [DefaultDispatcher-worker-2est_thread_info] Exception publishing Message: DestinationType: CUSTOMWEBHOOK, DestinationName:AzureServiceBus, Url: https://mynamespace.servicebus.windows.net/topic/messages?api-version=2015-01, scheme: HTTPS, Host: null, Port: -1, Path: null, Method: POST, Message: Hello " java.io.IOException: Failed: HttpResponseProxy{HTTP/1.1 401 Unauthorized [Transfer-Encoding: chunked, Content-Type: application/xml; charset=utf-8, Server: Microsoft-HTTPAPI/2.0, Strict-Transport-Security: max-age=31536000, Date: Wed, 24 Feb 2021 12:46:40 GMT] ResponseEntityProxy{[Content-Type: application/xml; charset=utf-8,Chunked: true]}}
It was my fault when not add es node to azure service bus whitelist
Describe the bug I can send message to a Azure Service Bus with the sas key (authorization header) . But when setup same things in Web hook destination it always return 401 error
""[ERROR][com.amazon.opendistroforelasticsearch.alerting.destination.factory.CustomWebhookDestinationFactory.publish(CustomWebhookDestinationFactory.java:45)] [DefaultDispatcher-worker-2est_thread_info] Exception publishing Message: DestinationType: CUSTOMWEBHOOK, DestinationName:AzureServiceBus, Url: https://mynamespace.servicebus.windows.net/topic/messages?api-version=2015-01, scheme: HTTPS, Host: null, Port: -1, Path: null, Method: POST, Message: Hello " java.io.IOException: Failed: HttpResponseProxy{HTTP/1.1 401 Unauthorized [Transfer-Encoding: chunked, Content-Type: application/xml; charset=utf-8, Server: Microsoft-HTTPAPI/2.0, Strict-Transport-Security: max-age=31536000, Date: Wed, 24 Feb 2021 12:46:40 GMT] ResponseEntityProxy{[Content-Type: application/xml; charset=utf-8,Chunked: true]}}