Function execution took ****** ms, finished with status: 'connection error'
ethanfox opened this issue · 2 comments
ethanfox commented
This code gives me this error:
Function execution took 11879 ms, finished with status: 'connection error'
How can I fix this?
Code:
exports.businessUpdated = functions.firestore.document('businesses/{uid}').onCreate(event => {
// Get the note document
const note = event.data.data();
// Add an 'objectID' field which Algolia requires
note.objectID = event.params.noteId;
// Write to the algolia index
const index = client.initIndex(ALGOLIA_INDEX_NAME);
return index.saveObject(note);
});
aryayudha commented
i got same problem, have you solved it?
samtstern commented
@aryayudha is it possible you're trying to access an external service but are still using the free plan?