Coder Social home page Coder Social logo

Comments (4)

aceat64 avatar aceat64 commented on June 8, 2024

I'm still getting an error when a webhook destination returns a 202:

[2019-10-15T15:26:20,043][ERROR][c.a.o.a.d.f.CustomWebhookDestinationFactory] [hot-data-az1-1] Exception publishing Message: DestinationType: CUSTOMWEBHOOK, DestinationName:REDACTED, Url: https://REDACTED, scheme: HTTPS, Host: null, Port: -1, Path: null, Message: { REDACTED }
java.io.IOException: Failed: HttpResponseProxy{HTTP/1.1 202 Accepted [Date: Tue, 15 Oct 2019 15:26:20 GMT, Content-Type: application/json, Content-Length: 32, Connection: keep-alive, CF-Cache-Status: DYNAMIC, Expect-CT: max-age=604800, report-uri="https://REDACTED", Server: cloudflare, CF-RAY: REDACTED] ResponseEntityProxy{[Content-Type: application/json,Content-Length: 32,Chunked: false]}}
	at com.amazon.opendistroforelasticsearch.alerting.destination.client.DestinationHttpClient.validateResponseStatus(DestinationHttpClient.java:156) ~[?:?]
	at com.amazon.opendistroforelasticsearch.alerting.destination.client.DestinationHttpClient.execute(DestinationHttpClient.java:81) ~[?:?]
	at com.amazon.opendistroforelasticsearch.alerting.destination.factory.CustomWebhookDestinationFactory.publish(CustomWebhookDestinationFactory.java:42) ~[?:?]
	at com.amazon.opendistroforelasticsearch.alerting.destination.factory.CustomWebhookDestinationFactory.publish(CustomWebhookDestinationFactory.java:29) ~[?:?]
	at com.amazon.opendistroforelasticsearch.alerting.destination.Notification.lambda$publish$0(Notification.java:43) ~[?:?]
	at java.security.AccessController.doPrivileged(Native Method) [?:1.8.0_201]
	at com.amazon.opendistroforelasticsearch.alerting.destination.Notification.publish(Notification.java:41) [alerting-notification-0.9.0.0.jar:?]
	at com.amazon.opendistroforelasticsearch.alerting.model.destination.Destination.publish(Destination.kt:167) [opendistro_alerting-0.9.0.0.jar:0.9.0.0]
	at com.amazon.opendistroforelasticsearch.alerting.MonitorRunner.runAction(MonitorRunner.kt:393) [opendistro_alerting-0.9.0.0.jar:0.9.0.0]
	at com.amazon.opendistroforelasticsearch.alerting.MonitorRunner.runMonitor(MonitorRunner.kt:196) [opendistro_alerting-0.9.0.0.jar:0.9.0.0]
	at com.amazon.opendistroforelasticsearch.alerting.MonitorRunner.runMonitor$default(MonitorRunner.kt:166) [opendistro_alerting-0.9.0.0.jar:0.9.0.0]
	at com.amazon.opendistroforelasticsearch.alerting.MonitorRunner$runJob$1.run(MonitorRunner.kt:160) [opendistro_alerting-0.9.0.0.jar:0.9.0.0]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_201]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_201]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:681) [elasticsearch-6.7.1.jar:6.7.1]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_201]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_201]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]

from alerting.

mathewlsm avatar mathewlsm commented on June 8, 2024

Hello Andrew,

the improvement is not merged back to version 0.9.0.0.

It's avaiable in following versions: v1.2.0.1 v1.2.0.0 v1.1.0.1 v1.1.0.0 v1.0.0.0; which means 1.0.0.0 and above.

Kind regards

Mathew

I'm still getting an error when a webhook destination returns a 202:

	at com.amazon.opendistroforelasticsearch.alerting.destination.Notification.publish(Notification.java:41) [alerting-notification-0.9.0.0.jar:?]

from alerting.

perkons avatar perkons commented on June 8, 2024

When creating alert destination getting return code 201

POST /_opendistro/_alerting/destinations/

{
  "name": "test-destination-1",
  "type": "slack",
  "slack": {
    "url": "http://www.example.com"
  }
}

from alerting.

perkons avatar perkons commented on June 8, 2024

Same goes for alert monitor creation, getting code 201

from alerting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.