The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
OpsGenie Heartbeat returning No handler found both in code and in Postman, the apikey and Heartbeat name a re both valid, so I'm stuck as to why this is occuring?
I am sending the following Post request in PostMan;
https://api.eu.opsgenie.com/v2/hearbeats/TEST-GORDON-HEARTBEAT/ping
My code for this is;
private static async Task<string> CreateHeartbeat()
{
var apiKey = Environment.GetEnvironmentVariable("apiKey");
var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", $"GenieKey {apiKey}");
try
{
var response = await client.PostAsync(Environment.GetEnvironmentVariable("apiHeartbeatUrl"),null);
return response.IsSuccessStatusCode.ToString();
}
catch (Exception e)
{
Console.WriteLine(e);
throw;
}
}
Okay I spotted something, I seem to have forgotten how to spell heartbeat - doh!
Hi Donald - I believe we just resolved these issues with you over the in-app support chat.
Looked like the issues were:
A) the api url you were using had "eu" in it, for a non-EU Opsgenie account
and
B) Headers were formatted incorrectly
So I believe we resolved this issue. Feel free to reach out again if you run into more questions or issues!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.