mielony
·it.spec.com.pl

Cloud Function Returns 200 but Conditional Action (to check it's status) is not working

Troubleshooting

Hi there.

I have a cloud function in my flutterflow project with firebase, now the function works and returns string :) (kind of Hello World function).


In my porject I have a button with associated custom action:

Action 1: Update Page State: mTest filed is set with String "Before Cloud Function Call"
Action 2: Cloud Function trigger
Action 3: Condition for Action, condition checks if clud function succeeded
--- > Now we have TRUE path and FALSE path
a) TRUE Path -> Updates Page State's mmTest, same as in ACTION 1 but with different value
b) FALSE Path -> Updates Page State, same as in ACTION 1 but with different value (also iferent than in TRUE PAth Action)




Now I have no error, however when I run the app and click the button I can see (in debug) that mmTest variable is set to "Before Cloud Function Call" (Action 1)

In developers cosole I can see in Network Tab that my function was triggered twice, returned once with 204 and one with 200, the 200 one has soemthing that looks like a proper resposne body.

Unfortunaltey the mmTest variable do not change at all (nor from TRUE nor from FALSE path action, remains "Before Cloud Function Call" )

Looks like nor TRUE nor FALSE path is being executed.


Video of an issue, hope someone had it and share the solution :)

https://youtu.be/sidQwrPYM5o


What have you tried so far?

I checked in firebase console and confirmed that function is executed. No error in logs.

Did you check FlutterFlow's Documentation for this topic?
Yes