Having some issues with our calls timing out when ...
# permit-saas
d
Having some issues with our calls timing out when hitting the Get Resource Instances endpoint this morning. Let me know if there is anything else I can provide for context
a
Hi @Danny Redden, I'm an AI assistant for Permit.io. I'll analyze available sources and get back to you shortly.
The Get Resource Instances endpoint supports several query parameters that can help narrow down results and potentially improve performance (1) : •
tenant
- Filter by tenant key or id •
resource
- Filter by resource key or id •
search
- Filter by resource instance key or id (supports multi-value) •
page
and
per_page
- Control pagination (max 100 per page) •
detailed
- If true, returns relationships of the resource instance •
include_total_count
- Include total count in response (will make the request slower) To help investigate the timeout issues, could you provide: 1. Which Workspace / Project / Env you are using 2. What calls are you performing (as SDK code or CURL) 3. Which PDP version you are running 4. Relevant logs from your PDP Additionally, it would be helpful to know: • How many resource instances you're trying to retrieve • Whether you're using any of the filtering parameters mentioned above • If you're setting
include_total_count=true
(which can slow down requests) If you're retrieving a large number of instances, consider using pagination with smaller
per_page
values or applying filters to reduce the dataset size .
To learn more, see the sources I considered: [[1] GET /v2/facts/{proj_id}/{env_id}/resource_instances](https://api.permit.io/v2/redoc#tag/Resource-Instances/operation/list_resource_instances)
d
Hi Danny would you be able to provide the following information? It would help us troubleshoot the problem 1. Which Workspace/Project/env are you using? 2. What is the exact API call you are making? 3. Relevant PDP logs - this will tell us what is happening during the timeout Thanks 🙂