Hi PagerDuty team,
So Iām trying to get my Python code working properly to get all incidents within a given date range (usually just about a month). This time, Iām trying to get it to download incidents within a given date range of more than 5 months and I seem to be getting an error: Invalid Input Provided
I tried CURL, and even logging into your API Explorer page
https://api-reference.pagerduty.com/#!/Incidents/get_incidents
Iām getting the same issue:
curl -X GET --header āAccept: application/vnd.pagerduty+json;version=2ā --header āAuthorization: Token token=MY-Tokenā āhttps://api.pagerduty.com/incidents?since=2018-09-01&until=2019-03-31&service_ids[]=S0MEID&time_zone=UTCā
This is the CURL result:
{āerrorā:{āmessageā:āInvalid Input Providedā,ācodeā:2001,āerrorsā:[" is invalid."]}}
This is the API Page result:
{
āerrorā: {
āmessageā: āInvalid Input Providedā,
ācodeā: 2001,
āerrorsā: [
" is invalid."
]
}
}
Any ideas?
Many thanks!