-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Has your issue been reported?
- I have searched the existing issues and confirm it has not been reported.
- I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.
Current Behavior
I have developed an application, and within this application, when a button is clicked, I am performing 2 backend "api call" events sequentially using the action flow editor. Afterwards, I am saving the results of these events to Firestore, but I am encountering an issue. In the first created api call event, I am able to receive the response from the "api call" using the action output. However, in the second "api call" operation, even though the result is not null, it appears as null.
Expected Behavior
When I test the call from the Response & Test section, I can see the data that comes from the API call, just like it's should be. However, in the action chain, even though the variable I'm using is correct and the result comes back as success, it still appears as null.
Steps to Reproduce
1 - Create a blank page.
2 - Place 1 button on this page.
3 - Create a call with the API information I used in the action part of the button you placed.
4 - Check the response information from this call.
Reproducible from Blank
- The steps to reproduce above start from a blank project.
Bug Report Code (Required)
IT4Sksrqw5N1m8tK7q6Jccdanj85KVg2bIIRl9VQEBE3fJutPaQlXOmmTBNoQtekTFc3eFmWhjk0p87HkdzIN/kDAzKaQb49z7t2FA3vQkinVYSOPJaOQmt6JNpKChDD1qezmBFCFNVYZXA43FOUIezIUhHYGKbsNTEvJv6YJoTAs3PuQ0SLb3kNh1JWeC/v
Context
As i mentioned, I am performing 2 API call operations in the action chain. Before executing these, I test them from the Response & Test section to see the results from the API and ensure everything is correct. However, when I try to write the returned responses to a text or Firestore after the second call (I'm testing this API call with the same information using tools like Postman and can see the results), I notice that the value comes as null. But based on the variables and information I provided, this response should not be null.
Visual documentation
1- This API Call returns null. But in the test responses it doesn't returns as null.

2- That's how the action chain looks like after the api call response is success (im trying to see the result in snack bar for testing the value):
- 1- In this step, after the API call is successful, I access the API call response through the "action outputs" section to retrieve the response

- 2-

3- When I test it from the Response & Test section, I can see the data that comes from the API call, just like it's shown in the picture. However, in the action chain, even though the variable I'm using is correct and the result comes back as success, it still appears as null.

4 - But whatever im doing the response is still appers as null. I've checked the console after i clicked the button to see the if there are any error like CORS or something. But there is nothing on the console too (I've set the label to response variable so you could see the null text)

Additional Info
I have already open a post on fluterflow community (https://community.flutterflow.io/database-and-apis/post/issue-with-second-api-call-result-appearing-as-null-when-saving-data-to-kBYEzQqj5TB9XZi) but we couldn't find any solutions there too.
Environment
- FlutterFlow version: v.3.10.4
- Platform: Web
- Browser name and version: Google Chrome 115.0.5790.171 64bit
- Operating system and version affected: Windows 11