Calling Impact Metric Endpoint get Uninformative Error Message

rest-api

(Allen Geer) #1

I am attempting to submit a metric via the impact metrics API to this endpoint:

    hostname: 'api.pagerduty.com',
    port: 443,
    path: '/business_impact_metrics/<redacted>/observations',

When I submit a payload without the “observed_at” value I get the following response:

" {“errors”:“You’re in a twisty little maze of errors, all alike”}"

Please provide useful error messages. It makes it kinda difficult to debug when the error messages coming back from an API are cheeky and uninformative.


(Jeff Martens) #2

Thanks for letting us know, Allen! I agree, thats not a useful message. I have notified the team and we will improve it in a future sprint. Thanks again!