safir.ali
safir.ali8mo ago

API call to Buildship from FlutterFlow app not being sent

We’re noticing that some of our API calls are not being sent to Buildship when a customer places an order. We’re seeing the order in the database document however when we look at the Buildship logs the API call does not show at all. Do you know what can cause an API call not to be sent from FlutterFlow App? About 80% of the calls make it but about 20% of the API calls don’t even make it to Buildship and we are unsure why this is happening. Please help so we can hopefully resolve this and not have to find an alternative to Buildship since reliability seems to be an issue
Solution:
If your backend makes another api call to chatgpt there's a chance the post request from FF will timeout.
Jump to solution
8 Replies
El Mago
El Mago8mo ago
I'm having trouble with FF -> Buildship as well. API tests 200 success in Buildship but fails in FF.
Stu
Stu8mo ago
So you've got 2 actions happening.... A "Create Document" action and an API call to BuildShip happening one after the other? Have you tried making these calls in parallel? Or using BuildShip to create the order document? The other thing I would look at is what you see in the Developer console in Chrome as the call is being made. Anything unusual there?
El Mago
El Mago8mo ago
So I built the api to call ChatGPT in buildship and I’m trying to call the buildship endpoint from FF I want to take form input in FF, send that to the buildship API to ChatGPT
safir.ali
safir.aliOP8mo ago
Yes, both the api call and the document creation are happening on FlutterFlow in that order. I’ve tried looking at the console but when testing in test mode the api call is working fine. The issue is happening in rare cases where the API call isn’t even showing in the logs (we basically notice holes in the Buildship logs when comparing to our DB doc) and our db doc gets created with null values
Stu
Stu8mo ago
Are you using a conditional action after the API call to ensure it succeeds before creating your Firebase document? That will help pick up if your API call has an error for whatever reason.
Martin
Martin8mo ago
@El Mago does the API call work when calling from a service like Postman to Buildship?
Gaurav Chadha
Gaurav Chadha8mo ago
Yes, the REST API endpoint can be executed/called from anywhere outside BuildShip too.
Solution
Sleetza
Sleetza8mo ago
If your backend makes another api call to chatgpt there's a chance the post request from FF will timeout.