Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calling the invoke API action failed with this message: Network Error

Tags:

python

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?

like image 380
Ravikanth Avatar asked Jun 18 '19 15:06

Ravikanth


People also ask

What is invoke error?

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.

How do I troubleshoot AWS 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.


1 Answers

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.

like image 193
Daniel R Carletti Avatar answered Sep 18 '22 20:09

Daniel R Carletti