# Wix Velo "Hello Fetch" did not response

**URL:** <https://forum.wixstudio.com/t/wix-velo-hello-fetch-did-not-response/56677>\
**Category:** Ask the community\
**Tags:** api, question, code\
**Created:** [February 24, 2024, 5:22pm UTC](https://forum.wixstudio.com/t/wix-velo-hello-fetch-did-not-response/56677 "2024-02-24T17:22:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cedric\_Doger](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/cedric_doger/32/87367_2.png) [@Cedric\_Doger](https://forum.wixstudio.com/u/Cedric_Doger)\
**Post date:** [February 24, 2024, 5:22pm UTC](https://forum.wixstudio.com/t/wix-velo-hello-fetch-did-not-response/56677/1 "2024-02-24T17:22:04Z")

</div>

**Question:**  
I try to call an external api, but it doesn’t work.  
I try the “Hello fetch”, same problem.

My code :  
let headers = new Headers();

```
headers.append('Content-Type', 'application/json');
headers.append('Accept', 'application/json');

const response = await fetch('https://velo-examples.wixsite.com/training-tester/_functions/randomgreeting', {
    mode: 'no-cors',
    //credentials: 'include',
    method: 'GET',
    headers: headers});

    console.log(response);
if(response.ok) {
    const json = await response.json();
    return json.greeting;
} else {
    return Promise.reject("Fetch did not succeed");
}

```

thanks for your help

---

<div class="post-metadata">

**Author:** ![Cedric\_Doger](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/cedric_doger/32/87367_2.png) [@Cedric\_Doger](https://forum.wixstudio.com/u/Cedric_Doger)\
**Post date:** [February 25, 2024, 10:21pm UTC](https://forum.wixstudio.com/t/wix-velo-hello-fetch-did-not-response/56677/2 "2024-02-25T22:21:04Z")

</div>

Finaly it’s ok, i have parameter the CORS option of my api, and i use GetJSON instead of fetch.
