Curl Incidents Error

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!

Hello,

Please can you review the entry you user in the Explore page.
Pulling a wider range provided an output.

If the issue persists, please can I have you send through the last 4 characters of your token and I will look into what could be going on.

Thanks

Hi Chiedu!

Thanks for your response! Problem still occuring even when trying from the https://api-reference.pagerduty.com/#!/Incidents/get_incidents.
Iā€™m sending you an attachment of what Iā€™m seeing when I search for incidents in PD website =)
pagerdutyapi

The last 4 characters of the token should be: yMJh

Cheers!

Hi Zac,

Could you please send in a support ticket at support@pagerduty.com with all of the information that you have here?

I ask this because we might ask for further information that is related to your specific account.

Thanks,