# 🐛 Ran Into a FlutterFlow API Bug — Here’s How I Fixed It

**URL:** <https://forum.nocodework.com/t/ran-into-a-flutterflow-api-bug-here-s-how-i-fixed-it/64>\
**Category:** Flutterflow\
**Tags:** communityinsights, flutterflow\
**Created:** [May 26, 2025, 6:47am UTC](https://forum.nocodework.com/t/ran-into-a-flutterflow-api-bug-here-s-how-i-fixed-it/64 "2025-05-26T06:47:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohan\_Sharma](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.nocodework.com/rohan_sharma/32/26_2.png) [@Rohan\_Sharma](https://forum.nocodework.com/u/Rohan_Sharma)\
**Post date:** [May 26, 2025, 6:47am UTC](https://forum.nocodework.com/t/ran-into-a-flutterflow-api-bug-here-s-how-i-fixed-it/64/1 "2025-05-26T06:47:34Z")

</div>

Hey everyone 👋

Just wanted to share a quick issue I ran into with FlutterFlow’s API Call section, in case it helps someone else.

I was working with a simple `GET` API where I needed to pass a dynamic `user_id` in the URL, like this:

[https://api.example.com/data?user={{user\_id}](https://api.example.com/data?user=%7B%7Buser_id%7D)}

In the **Test API Call** section, everything worked perfectly. But once I tried using it in my actual app, the API kept returning no data. After checking the request logs, I noticed that it was sending `user=null` even though I was sure I passed the correct value from a text field or app state.

Super confusing.

### The weird part?

It only happened when I used the API inside a **FutureBuilder** or as a data source on page load. If I called it directly through a button action, it worked fine.

### What worked for me:

I ended up creating a **custom function** that called the API manually, passing in the dynamic `user_id` from a variable. Then I triggered it either on page load or via a button.

Once I did that, the correct values were sent and everything loaded properly. So it seems like there’s a bug with how dynamic variables bind inside API calls when used in a FutureBuilder or without an explicit trigger.

Anyway, just a heads up if your API seems broken but works in the test tab it might not be your fault. Try triggering the call manually and passing values that way.

Hope this helps someone!

---

<div class="post-metadata">

**Author:** ![Madhav\_Ojha](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.nocodework.com/madhav_ojha/32/21_2.png) [@Madhav\_Ojha](https://forum.nocodework.com/u/Madhav_Ojha)\
**Post date:** [May 29, 2025, 12:17pm UTC](https://forum.nocodework.com/t/ran-into-a-flutterflow-api-bug-here-s-how-i-fixed-it/64/2 "2025-05-29T12:17:50Z")

</div>

Super helpful, especially for cleaning up large projects!
