# Xano collection not fetching all the data? New bug?

**URL:** <https://community.weweb.io/t/xano-collection-not-fetching-all-the-data-new-bug/5835>\
**Category:** Ask us anything\
**Created:** [December 8, 2023, 3:28pm UTC](https://community.weweb.io/t/xano-collection-not-fetching-all-the-data-new-bug/5835 "2023-12-08T15:28:13Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericp](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ericp](https://community.weweb.io/u/ericp)\
**Post date:** [December 8, 2023, 3:28pm UTC](https://community.weweb.io/t/xano-collection-not-fetching-all-the-data-new-bug/5835/1 "2023-12-08T15:28:13Z")

</div>

Just submitted a ticket, but wondering if anyone else is seeing an issue with Xano collections not fetching the entire response? I have a endpoint that has been working for months and now today there are sections of the response that are not resolving in WeWeb. For context, the endpoint is a GET of a table in Xano, with addons that pull related table records in several levels. The data that is missing in WeWeb is some of the related records.

If I call the endpoint directly in the browser, it pulls everything. If I refresh the collection or the browser, sometimes the missing data changes. If I check the Xano request history, it shows all the data was served. Very weird and couldn’t come at a worse time, have a big demo planned this afternoon.

---

<div class="post-metadata">

**Author:** ![Quentin](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/quentin/32/6_2.png) [@Quentin](https://community.weweb.io/u/Quentin)\
**Post date:** [December 8, 2023, 3:44pm UTC](https://community.weweb.io/t/xano-collection-not-fetching-all-the-data-new-bug/5835/2 "2023-12-08T15:44:09Z")

</div>

Could you show us a screenshot or a Loom with the WeWeb and Xano configuration of the endpoint? Seems like a config mismatch to me.

---

<div class="post-metadata">

**Author:** ![ericp](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ericp](https://community.weweb.io/u/ericp)\
**Post date:** [December 8, 2023, 4:06pm UTC](https://community.weweb.io/t/xano-collection-not-fetching-all-the-data-new-bug/5835/3 "2023-12-08T16:06:16Z")

</div>

Here you go. I don’t think there is an issue with the configuration, but maybe I’ll be surprised… it hasn’t been changed in weeks and has been working until today.

---

<div class="post-metadata">

**Author:** ![ericp](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ericp](https://community.weweb.io/u/ericp)\
**Post date:** [December 8, 2023, 4:16pm UTC](https://community.weweb.io/t/xano-collection-not-fetching-all-the-data-new-bug/5835/4 "2023-12-08T16:16:28Z")

</div>

If I setup a new collection with a Rest API call it works as expected. Tells me the Xano plugin has changed somehow since yesterday…

 ![Screenshot 2023-12-08 101612](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/7/71efd217bd09127300a9538544dc987f71ac82f6.png)

---

<div class="post-metadata">

**Author:** ![Dominic](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dominic/32/5645_2.png) [@Dominic](https://community.weweb.io/u/Dominic)\
**Post date:** [December 8, 2023, 4:25pm UTC](https://community.weweb.io/t/xano-collection-not-fetching-all-the-data-new-bug/5835/5 "2023-12-08T16:25:28Z")

</div>

There is more unfortunate changes in the existing components and they stopped working ☹

---

<div class="post-metadata">

**Author:** ![ericp](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ericp](https://community.weweb.io/u/ericp)\
**Post date:** [December 8, 2023, 4:48pm UTC](https://community.weweb.io/t/xano-collection-not-fetching-all-the-data-new-bug/5835/6 "2023-12-08T16:48:38Z")

</div>

Spoke too soon, seems like after a few refreshed of the direct Rest API call, the same behavior is exhibited. Is this some sort of cache issue?

---

<div class="post-metadata">

**Author:** ![ericp](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ericp](https://community.weweb.io/u/ericp)\
**Post date:** [December 9, 2023, 4:53pm UTC](https://community.weweb.io/t/xano-collection-not-fetching-all-the-data-new-bug/5835/7 "2023-12-09T16:53:56Z")

</div>

No response yet to the ticket that I submitted Friday morning US central time.

This is impacting a production app.

---

<div class="post-metadata">

**Author:** ![aurelie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/aurelie/32/13249_2.png) [@aurelie](https://community.weweb.io/u/aurelie)\
**Post date:** [December 12, 2023, 7:27pm UTC](https://community.weweb.io/t/xano-collection-not-fetching-all-the-data-new-bug/5835/8 "2023-12-12T19:27:30Z")

</div>

Hi @ericp,  
you should receive an update with details explanation on the support app.  
I will not share details as it may be private, but a summary was that you have a repeat container binded to a custom javascript formula, and this formula was filterting your data and _updating_ it in the meantime.  
We send you an updated script to avoid side effect.  
When you have deep object/array, always avoid methods with assignement on your filter to avoid this problem in the future 🙂

---

<div class="post-metadata">

**Author:** ![ericp](https://avatars.discourse-cdn.com/v4/letter/e/ea666f/32.png) [@ericp](https://community.weweb.io/u/ericp)\
**Post date:** [December 12, 2023, 8:32pm UTC](https://community.weweb.io/t/xano-collection-not-fetching-all-the-data-new-bug/5835/9 "2023-12-12T20:32:53Z")

</div>

Thank you WeWeb team for troubleshooting this issue. The javascript formula implications are a bit over my head, but when I asked ChatGPT, what the functional differences are between my original formula and what the team suggested, the answer was that my formula modified the input array using the ‘map’ function, effecting all other uses of that array on the page. Your formula instead uses the ‘filter’ function, which does so only in the context of that specific component where it is called. Is this correct?

Learned something new. FWIW, I believe I used the Ask AI function in WeWeb to generate that original JS code. Not sure if there is a way to provide the negative feedback to the model to prevent similar issues in the future… again, over my head! 😄

---

<div class="post-metadata">

**Author:** ![aurelie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/aurelie/32/13249_2.png) [@aurelie](https://community.weweb.io/u/aurelie)\
**Post date:** [December 12, 2023, 8:57pm UTC](https://community.weweb.io/t/xano-collection-not-fetching-all-the-data-new-bug/5835/10 "2023-12-12T20:57:31Z")

</div>

Hey,  
The problem was not the map itself, but the fact thats inside it you reassigned your array property with the filter versions
