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

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

Statuspage metrics nodejs example doesn't do error checking?

Hello. If I run the node.js example including the line:

var apiKey = 'your-api-key-goes-here';

With literally 'your-api-key-goe-here' instead of my actual API key. Of course it doesn't succeed at submitting metrics (presumably it gets a 401 error) but the script continues like nothing is wrong.

How could the example be improved in order to do some basic error checking?

1 answer

0 votes
Dave Parrish Atlassian Team May 07, 2020

Hey @Paul Dejean , it's Dave from the Statuspage product team. I agree it would be more helpful if our code samples for submitting metrics data included some error handling, in case the API request fails for some reason.

Thanks for the suggestion - I am adding it to our backlog!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Statuspage

New feature: Slack notifications for Statuspage

We're excited to announce the release of a long-requested feature on Statuspage. Now visitors to your status page can subscribe to get notified in Slack when you report an incident or maintenance. Th...

1,688 views 4 16
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