· Figuring it out as I go

array length less than 1 returned from JSON from API bug

Database & APIs

I opened an issue here https://github.com/FlutterFlow/flutterflow-issues/issues/3743

but wanted to see if anyone in the community had any insights.

You can read the detailed version on github, but essentially if my API call's JSON body's array is length <= 1 then the action flow seems to perpetually "await" the action where the api call is made. You can see the action I am using to set the returned array to my component state in the github issue. Does anyone know what would cause this? It only appears to be an issue when I am working in the application. The API test response page seems to work fine, so I believe there is some issue with how I am setting the component state.

What have you tried so far?

I've tried seeing if there was a different way to get the values out of the JSON response but I don't see one. I was going to try setting the return as data type setting in the API , but it doesn't allow me to open the dropdown to choose any data types.

Did you check FlutterFlow's Documentation for this topic?
No
2 replies