最近の検索
最近の検索はありません
Triggers API endpoint is returning error when used with pagination parameters
投稿日時:2023年10月17日
The triggers API endpoint is returning the following error with 503 Status.
The endpoint is working fine when used without parameters but failing when the 'page[size] =100' parameter is added. Please check why this is happening and issue a fix.
{
"error":{
"title":"DatabaseError",
"message":"Unknown database error"
}
}
0
4
4件のコメント
Tipene Hughes
It looks like this is actually an issue caused by the documentation not being clear on the correct usage of the parameters. When using cursor-based pagination together with the Triggers API, the accurate parameter will be
sort
, as opposed tosort_by
. So, the correct endpoint based on your example would behttps://<account-id>.zendesk.com/api/v2/triggers.json?include=app_installation,permissions&sort=updated_at&page[size]=100
.I'm working with our documentation team to have this updated asap.
Apologies for the mix up! If you have any questions, feel free to reach out.
Tipene
0
Developer
https://<account-id>.zendesk.com/api/v2/triggers.json?include=app_installation,permissions&sort_by=updated_at&page[size]=100
We have very few triggers setup in our account. This seems like a server issue.
0
Tipene Hughes
Can you clarify exactly which endpoint you are making the request to?
0
Developer
On more testing it was seen that the failure occurs when sort_by=updated_at&page[size]=100 both these parameters are used together
0
サインインしてコメントを残します。