algolia / firestore-algolia-search

Apache License 2.0
112 stars 35 forks source link

Emulator: Function 'executeFullIndexOperation is missing a trigger in extension.yaml #221

Open benomatis opened 2 months ago

benomatis commented 2 months ago

When I start the firebase emulator, I get following errors:

Function 'executeFullIndexOperation is missing a trigger in extension.yaml. Please add one, as triggers defined in code are ignored.

...and further down...

✔  functions: Loaded functions definitions from source: executeIndexOperation, executeFullIndexOperation.
✔  functions[europe-central2-ext-firestore-algolia-search-executeIndexOperation]: firestore function initialized.
⚠  Unsupported function type on ext-firestore-algolia-search-executeFullIndexOperation. Expected either an httpsTrigger, eventTrigger, or blockingTrigger.
i  functions[europe-central2-ext-firestore-algolia-search-executeFullIndexOperation]: function ignored because the unknown emulator does not exist or is not running.

I did check your extension.yaml and indeed, it doesn't seem to have a trigger executeFullIndexOperation. Is this normal?

With this error I'm forced to turn off the extension in the emulator otherwise I document in the collection cannot be touched, I get unknown errors from firestore.

This is only happening in the emulator, I have the extension activated online, and it works perfectly.

Disabling Full Index isn't changing anything, I must exclude the extension when starting the emulator, otherwise I cannot use the app locally for anything that touches the collection the extension uses.