Rick Chin
ย ยทย Aspiring to build software that people will love

Is there a way to see the url constructed to make an API call?

Database & APIs

I am trying to use the Google distancematrix API (https://developers.google.com/maps/documentation/distance-matrix

) call to get the driving distance and time between two places. I successfully defined the API call within FF, and I can see good results when I use "Response & Test".

When I call this API from an Action Block, I get null results and a Status Code of 400. My understanding is that I am submitting a badly formed URL. I have been beating my head against the wall all day because I am unable to track down what I am doing wrong.

It would be super helpful if I could see what the constructed API URL looks like when I am making my call from the action block. Does anyone know how to see this? Whether it be getting access to the submitted string, or somehow seeing it in the Javascript console.

Thanks for any insights and help!

What have you tried so far?

I have used debugPrint extensively to look at all the parameters used in the construction of the URL. All of which look correct.

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