-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[alerting] http status 422 from webhook action to opsgenie #75299
Comments
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
For reference, the API I tried is described here - https://docs.opsgenie.com/docs/alert-api#create-alert I created a 14-day OpsGenie trial to try this out, not sure if we have an elastic account for OpsGenie or not - it's an Atlassian product. |
Note that I originally opened this from an SDH where the customer thought the order of the required I was finally able to get OpsGenie to work from Kibana, the only change from the info ^^^ is that I had to use an Integration API key, not just a plain old API key (they support multiple types of API keys). To get to the point where you can create an Integration API key, you need to add a Team to your account, then you'll be able to create an Integration API key for the team. Using that key, I was able to post to Opsgenie from an alert, with the headers in both orders. I suspect what the customer was seeing were related to some of the other issues we've had with webhook headers:
It also seems to be the case that OpsGenie returns 422 in a lot of cases - it's basically a specialized 400 response you'd see from most other services - I think they separate "syntax" issues into 400's, and "semantic" issues into 400. |
going to close this for now, perhaps some breadcrumbs for future issues with OpsGenie ... |
Thought I'd clarify one bit here - I wasn't able to actually reproduce the customer's error of just changing the headers and then seeing a 422 response code. However, it seems to me that the referenced issues with headers for the webhook action is most likely at fault here. I did notice that 422 seemed to be a fairly "common" response code returned from OpsGenie - the case I saw was when I used an inappropriate API key (wasn't an Integration API key, just a plain API key), so it is possible that there was some other issue involved in the customer's environment. I don't remember now if the response body contained more details about the error; if so, in the future, we will be exposing more of this sort of error information in the UI, in future releases. There are a couple of ways of getting this info today using some of our HTTP APIs, if required - LMK for more info on this. |
Trying to use OpsGenie from the webhook connector, and am seeing http 422 responses from my simple test.
Here's some of the data from the alert/action:
The text was updated successfully, but these errors were encountered: