Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,360
Community Members
 
Community Events
185
Community Groups

OpsGenie Heartbeat returning No handler found

Edited
Deleted user Oct 20, 2020

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

2 answers

1 accepted

0 votes
Answer accepted
Deleted user Oct 20, 2020

Okay I spotted something, I seem to have forgotten how to spell heartbeat - doh!

1 vote
Samir
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 20, 2020

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!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events