# API Erreur

**URL:** <https://community.glideapps.com/t/api-erreur/29884>\
**Category:** Ask for Help\
**Tags:** custom-code\
**Created:** [August 2, 2021, 1:42pm UTC](https://community.glideapps.com/t/api-erreur/29884 "2021-08-02T13:42:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manu.n](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manu.n/32/11679_2.png) [@Manu.n](https://community.glideapps.com/u/Manu.n)\
**Post date:** [August 2, 2021, 1:42pm UTC](https://community.glideapps.com/t/api-erreur/29884/1 "2021-08-02T13:42:04Z")

</div>

Hello @Mark  
Need a little help. (Uhmm if you have some time 😉)  
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

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/8/18897d83eae69919771747541b7a44f73890cc5d.png)

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/0/50b8d384958f38755a6dcbd12ebca8c859feee1a.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/0/80364df49fbf9c660e0499a22fa8b59d1e1adb95.png)

---

<div class="post-metadata">

**Author:** ![Manu.n](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manu.n/32/11679_2.png) [@Manu.n](https://community.glideapps.com/u/Manu.n)\
**Post date:** [August 3, 2021, 7:07pm UTC](https://community.glideapps.com/t/api-erreur/29884/2 "2021-08-03T19:07:14Z")

</div>

If there’s a pro around to give me a little help 😜 🤣

---

<div class="post-metadata">

**Author:** ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)\
**Post date:** [August 4, 2021, 3:43am UTC](https://community.glideapps.com/t/api-erreur/29884/3 "2021-08-04T03:43:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Francisco\_Maldonado](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/francisco_maldonado/32/18423_2.png) [@Francisco\_Maldonado](https://community.glideapps.com/u/Francisco_Maldonado)\
**Post date:** [September 7, 2021, 6:05pm UTC](https://community.glideapps.com/t/api-erreur/29884/4 "2021-09-07T18:05:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [September 7, 2021, 6:09pm UTC](https://community.glideapps.com/t/api-erreur/29884/5 "2021-09-07T18:09:43Z")

</div>

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](https://stackoverflow.com/questions/44336773/google-maps-api-no-access-control-allow-origin-header-is-present-on-the-reque)

---

<div class="post-metadata">

**Author:** ![Manu.n](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manu.n/32/11679_2.png) [@Manu.n](https://community.glideapps.com/u/Manu.n)\
**Post date:** [September 7, 2021, 7:47pm UTC](https://community.glideapps.com/t/api-erreur/29884/6 "2021-09-07T19:47:20Z")

</div>

Ah ok I understand better why it does not work !!!  
you could have said it earlier 🤣 🤣 🤣 🤔 😜 😜 😝

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [September 7, 2021, 8:04pm UTC](https://community.glideapps.com/t/api-erreur/29884/7 "2021-09-07T20:04:33Z")

</div>

I learned this over the weekend. Sorry!
