How do I resolve "read timeout on endpoint URL" during a bulk upload to Panther?
Issue
When trying to run a bulk upload to Panther, timeout errors such as the following occur:
Error: [root]: failed to upload to backend: Read timeout on endpoint URL: "https://lambda.us-east-1.amazonaws.com/2015-03-31/functions/panther-analysis-api/invocations"
What can I check to ensure that I am using asynchronous bulk uploads?
Resolution
Using the asynchronous version of PAT upload can help alleviate this issue. To ensure that you are running the asynchronous version of upload, please check that you are:
- Using Panther Analysis Tool (PAT) version 0.22.0 or newer
- Using an API Token with
Bulk Upload
permissions - Omitting the
--no-async
argument on theupload
command. Not including this argument reduces the likelihood of a timeout.
Cause
Bulk upload and timeout issues can occur when you are not running the asynchronous version of upload.