Getting error when integrate cliq with Geocoding API

Getting error when integrate cliq with Geocoding API

I am getting the error like "Oops! Looks like something went wrong with the integration. Please try again later or contact the creator of the integration."

My code:
message = Map();
destination_details = getUrl("https://maps.googleapis.com/maps/api/geocode/json?address=" + arguments + "&key=AIzaSyAFkLAoZEfgkfbifcIK9uQR62dU2IJoUTU");
lat_long = destination_details.toMap().get("results").toMap().get("geometry").get("location");
lat = lat_long.get("lat");
long = lat_long.get("lng");
traffic = getUrl("https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=" + location.get("latitude") + "," + location.get("longitude") + "&destinations=" +lat + "," + long + "&departure_time=now&key=AIzaSyAThEwtaGkCvMYaCPhUopzPM5I270NmSrA");
results = traffic.toMap().get("rows").toMap().get("elements").toMap().get("status");
if ( results == "OK" ) 
{
time = traffic.toMap().get("rows").toMap().get("elements").toMap().get("duration").get("text");
time_traffic = traffic.toMap().get("rows").toMap().get("elements").toMap().get("duration_in_traffic").get("text");
message = {"text":"Hi " + user.get("first_name") + "! Here's the traffic information to *" + arguments + "* \nActual Time: " + time + " \nTime with Traffic: " + time_traffic + " ! :smile:","card":{"title":"Traffic For You!","icon":"https://screenshots.en.sftcdn.net/en/scrn/97000/97769/google-maps-58-100x100.png","theme":"prompt"}};
}
else 
{
message.put("text","Sorry! Can't find the traffic details now. Try [here](" + mapURL + ")");
}
return message;