# Fetching data - react native 2

**URL:** <https://forum.codewithmosh.com/t/fetching-data-react-native-2/8080>\
**Category:** Uncategorized\
**Created:** [October 22, 2021, 6:10am UTC](https://forum.codewithmosh.com/t/fetching-data-react-native-2/8080 "2021-10-22T06:10:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranisantu](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@ranisantu](https://forum.codewithmosh.com/u/ranisantu)\
**Post date:** [October 22, 2021, 6:10am UTC](https://forum.codewithmosh.com/t/fetching-data-react-native-2/8080/1 "2021-10-22T06:10:30Z")

</div>

Hi,

unable to get the data from the API. following is the o/p of the console statement - console.log('listings: ’ + listings)

listings:  
listings:  
listings:

Error
```
Cannot GET /listings
```

please help me with this.

---

<div class="post-metadata">

**Author:** ![ranisantu](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@ranisantu](https://forum.codewithmosh.com/u/ranisantu)\
**Post date:** [October 22, 2021, 6:17am UTC](https://forum.codewithmosh.com/t/fetching-data-react-native-2/8080/2 "2021-10-22T06:17:55Z")

</div>

issue solved. gave wrong ‘baseURL’.

---

<div class="post-metadata">

**Author:** ![Jonasliu90](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@Jonasliu90](https://forum.codewithmosh.com/u/Jonasliu90)\
**Post date:** [March 8, 2022, 7:34pm UTC](https://forum.codewithmosh.com/t/fetching-data-react-native-2/8080/3 "2022-03-08T19:34:54Z")

</div>

Hi, could you describe how did you solve the issue? I met the same issue now. You just said wrong ‘baseURL’, so what is the correct one ?
