@Zac wrote:
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_incidentsI’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!
Posts: 1
Participants: 1