Prisma Cloud: v2/resource/scan_info API endpoint returning 504 errors
150
Created On 06/20/24 13:35 PM - Last Modified 06/29/26 19:14 PM
Symptom
- Calling the v2/resource/scan_info API endpoint returns 504 timeout errors.
Environment
- Prisma Cloud
- API
Cause
- The functionality to fetch RRN and decorate response takes considerable amount of time and causes time out.
- This can be due to multiple reasons:
- How frequently the script is being used to retrieve the assets.
- It would be recommend use a tool like Postman or cURL to manually test the API and see if the same error occurs. If it is, then the issue is with the server or API endpoint, and not the script.
- There are chances of timeouts due to slow network connection or a heavy load on the server during peak traffic.
- RRNs can be enabled when fetching less resources but since it involves S2S call to downstream service to get RRN info.
- How frequently the script is being used to retrieve the assets.
Resolution
- A feasible workaround is reducing the response limit to a lower number, by default it is set to 10k.