Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Google Distance api trouble shoot

BosKev
8 - Asteroid

Hello,

 

Could someone help figure out whats wrong with my distance api call formula? I tested this in browser it worked perfectly fine. But when I created a simple workflow it keeps giving me this error "Error: Download (3): Error transferring data: Failure when receiving data from the peer"

 

https://maps.googleapis.com/maps/api/directions/json?origin=Queens&destination=Brooklyn&mode=transit...

 

Thanks,

BosKev

5 REPLIES 5
jamielaird
14 - Magnetar

Hi @BosKev 

 

The URL being used in the Download tool seems to include the placeholder text "enterkey". See below. If you fix this I believe it should work.

 

Screenshot 2019-07-30 at 15.22.45.png

 

If you simply run the URL you're using the browser through a Download tool you'll see that it works fine (HTTP 200), so there's not a difference in how this is handled by Alteryx or Chrome:

 

Screenshot 2019-07-30 at 15.24.06.png

 

 

JosephSerpis
17 - Castor
17 - Castor

Hi @BosKev You had a space in your formula tool I have amended your workflow this should work.Google_Drivetime.JPG

BosKev
8 - Asteroid

Hi @JosephSerpis@jamielaird 

 

Thanks for the quick reply. I wish it was this simple...I tried this multiple times still having problems.

 

I think there's something in the setting of Alteryx? Or our corp network is blocking the request? I tried your new workflow with space removed it still giving me the error? Also, I did what Jamie suggested just connect straight to the download tool still connection error. But if I just paste the address in my google chrome browser I can see Json values returned. see screenshot below:

 

Untitled.jpg

 

Untitled1.jpg

NickSm
Alteryx
Alteryx

@BosKev 

 

Can reference this knowledge base post, not to the Google API but to another which resulted in the same error.  Seems to be an issue of the API location needing to be whitelisted or ensuring that Designer is set to use a proxy that you have in place.

 

https://community.alteryx.com/t5/Location-Data-Knowledge-Base/UK-ROI-Geocoder-Failure-when-receiving...

BosKev
8 - Asteroid

@NickSm , Thanks.

 

I'll follow up with the right department.

Labels