Skip to content
Back

Event not fired or function not executed on document creation if document created using flutter sdk

  • 0
  • Self Hosted
  • Flutter
  • Functions
Dies das
7 Nov, 2024, 15:29

Hi, i run self hosted Version 1.6.0 and have a function with a trigger on document creation for a specific collection. The event fires and the function is executed when i create a document via console but if the document is created using flutter sdk the function is not triggered(no execution so no errors i could use to debug). Why could that be? How can i debug this - is there a way to monitor all events or something like that? (I tried with and without specific permissions on the document level and enableing all scopes for the api key used by the funciton, set execution permission to any and such things but it does not work) (Searched the docs, web, issues on github and here and found no solution or hint)

If you need more details to provide help please let me know. Cheers

TL;DR
Issue: Function triggered on document creation in Firestore is not executed when the document is created using Flutter SDK. Possible Causes: - Specific permissions or scopes not properly set up for the API key used by the function. - Flutter SDK might have a different way of triggering events compared to console creation. Solution: - Double-check permissions and scopes for the API key. - Consider alternative ways to trigger the function from the Flutter SDK.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more