API Erreur

Hello @Mark
Need a little help. (Uhmm if you have some time :wink:)
I wanted to use the API’s distanceMatrix and place autocomplete from google.

But every time I get a fetch error (Failed to load resource net=ERR_FAILED), although the link works fine directly in Chrome.

To resolve this error I used a {mode: no-cors} but

  1. I have another error in the response [prototype] Json value
    TypeError: ‘caller’, ‘callee’, and ‘arguments’ properties may not be accessed on strict mode functions or the arguments objects for calls to them at Function.r (: 1: 83)

  2. Obviously I no longer have an answer in Json

So my question: is this a problem in glide with this kind of API or my code is completely null


1 Like

If there’s a pro around to give me a little help :stuck_out_tongue_winking_eye: :rofl:

If the wizard doesn’t know, what about the mere mortals lol


Hello @Manu.n I wanted to know if you could use the EC to calculate matrix distance with Google Maps?

I recently learned that this is a restriction on Google’s part.

Here’s more info about it. Google Maps API: No 'Access-Control-Allow-Origin' header is present on the requested resource - Stack Overflow


Ah ok I understand better why it does not work !!!
you could have said it earlier :rofl: :rofl: :rofl: :thinking: :stuck_out_tongue_winking_eye: :stuck_out_tongue_winking_eye: :stuck_out_tongue_closed_eyes:

1 Like

I learned this over the weekend. Sorry!

1 Like