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;
}
}