I’m trying to send a large parquet file to RDS Postgres using Lambda. When I try to test the lambda function. I’m facing the below error:
Calling the invoke API action failed with this message: Network Error
I tried sending with limited rows, I haven’t faced any issue but when I tried to send the whole file which is of 300 mb, then I’m getting the above error.
Can someone help me with this?
Invocation errors can be caused by issues with request parameters, event structure, function settings, user permissions, resource permissions, or limits. If you invoke your function directly, you see any invocation errors in the response from Lambda.
To troubleshoot Lambda code errors You can use CloudWatch to view all logs generated by your function's code and identify potential issues. For more information, see Accessing Amazon CloudWatch Logs for AWS Lambda.
I got the same error, which was weird because it was working fine for very small files. I tried with a larger file (only 5mb), and got the error message.
Solution: check the memory allocation for the lambda function. I was using the standard minimum (128mb). Changed it to 1gb, it worked fine. The error message is horrible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With