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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

OpsGenie Heartbeat returning No handler found Edited

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

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

1 vote
Samir Atlassian Team 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
Community showcase
Published in Opsgenie

Investigate deployment-related incidents with Bamboo and Opsgenie together

Back in April of last year one of the major product announcements from Opsgenie was the launch of the Incident investigation view which created a deep connection between Bitbucket and Opsgenie, empow...

734 views 1 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you