Qube
Qube

Reputation: 41

Upload file to GCB timeout

I using NodeJS to export large excel data around 400k rows in local machine took 2 minutes + only. However, after I deploy to Google cloud function, it stuck on commit file until function is timeout. I have no idea why in my local machine is fast but google function will timeout.

This is result from local machine enter image description here

This is result log on google cloud enter image description here

I using google cloud function generation 1 with RAM 8.

This is full log enter image description here

Upvotes: 1

Views: 332

Answers (1)

Qube
Qube

Reputation: 41

Finally I found the solution. But I dont know why the problem is this. Maybe is library issues?

Change .then function to await enter image description here

New Result (commit within 5 sec) enter image description here

Upvotes: 1

Related Questions