Hi, I am getting an error at Google Cloud Function...
# community-help
r
Hi, I am getting an error at Google Cloud Function Log while transferring data from firestore to typesense.
Request #1627012857493: Request to Node 0 failed due to "ECONNABORTED timeout of 10000ms exceeded"
j
Could you share a screenshot of your extension configuration, excluding the api key?
r
message has been deleted
j
Could you DM me the Typesense Host field?
May I know the number of records you have in your Firestore collection?
And the rough size of each record?
r
I have only 7 documents in the collection
j
The issue is that the cluster has run out of memory, for the amount of data indexed so far. And once RAM runs out things get unpredictable.
r
I am just starting so. for the mean time i kept the ram to .5gb
j
Oh hmmm, 7 documents shouldn't fill up memory so much...
Looking deeper
r
by the way this is my cluster config
message has been deleted
j
I've restarted the node which has addressed memory consumption and stabilized the node. But I'd like to see if we can replicate this issue.
Could you try inserting another doc into Firestore?
Also, was the last document you added to Firestore particularly large (like say 500KB for eg)?
r
still having the same error.
j
Can I upgrade your cluster to v0.21.0? We addressed one related issue in there
r
ok
j
I think I'm going to have to also increase the write timeout in the extension, that might be part of the issue
r
regarding the size. I have around 20 fileds with each lessthan 500 character length. should be around 1 - 2 kb
👍 1
j
It's basically retrying multiple times, before the previous request is done and that's clogging things up
r
ah ok.
j
Ok, I've updated the cluster to v0.21.0 and also published a new version of the extension that increases the connection timeout. Could you visit the "Extensions" section of your Firebase project, and click on Upgrade next to the firestore-typesense-search extension?
v0.2.4
is the version with the increased timeout
r
Ok, I will do
It is working now. but got new problem.
message has been deleted
If I change the field to geopoint, I got another error
message has been deleted
j
Could you make the elements of the location array integers?
r
Ok I will
thank you. it is working
j
Awesome!