API response in bubble.io showing differently compare to postman/python

Hi,

I have spent few hours to check on this issue that I had. So, basically I have 2 APIs that being call.

1st API - will return me the job id
2nd API - based on the job id received, it will return me the URL

When I debug from bubble, the result of 2nd API call is in progress (status: in_progress) which resulted me an empty response

But, if I test via Python or Postman, I can get instant result: Success and can get the url I want

Is there anything I need to do after the 2nd api call?

(please disregard the different in job id between the one in bubble and python, as I only showing the sample for python - but I tested it is working in python or postman)

Try putting a pause action after the 1st API call.

thanks for the reply. I did but still not work.

Fyi, this will be api reinitialized result looks like:

Reinitialize able to give me instant result as well.

The API you are calling probable take more time to process your request. Do you have API doc url?

The api doc didnt mention anything about the timing period to process the call. I believe it should able to give instant response (in millisec at least) since I can get instant response when calling via Python and Postman.

This will be the API documentation:

API doc clearly say that it could return in progress, sucess or failed.
You may get instant response in Python and postman just because of the delay between the first call and the second call where you probably manually copy and paste the job id. Same for API Connector. Bubble doesn’t always do the “pause time” action because WF are not always run in order.

Maybe you can look at webhook if available for job? (I didn’t see this available for autofill)

If you want to test the “delay” add two button. One that will call the first api and set state with the JOB ID. Wait a few seconds and click second button that will fetch second API call using the state for job id.

Added some more details here on the workflow and api setup:

image

image

Haa… kinda make sense to me :slight_smile:

Will have a try on that approach. Thanks for the suggestion and info!

The method you suggested is working! Thanks a lot for the help!! :slight_smile: