# Xano Auth Blocking Fetch Collection

**URL:** <https://community.weweb.io/t/xano-auth-blocking-fetch-collection/4159>\
**Category:** Ask us anything\
**Created:** [September 1, 2023, 4:24pm UTC](https://community.weweb.io/t/xano-auth-blocking-fetch-collection/4159 "2023-09-01T16:24:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/mark/32/4163_2.png) [@mark](https://community.weweb.io/u/mark)\
**Post date:** [September 1, 2023, 4:24pm UTC](https://community.weweb.io/t/xano-auth-blocking-fetch-collection/4159/1 "2023-09-01T16:24:18Z")

</div>

Hi, I have a workflow where Fetch collection seems to not be working. In Xano, the test on it work fine. When I fetch from weweb its telling me there is a 401 code, which means the authentication token did not pass. But I know I am authenticated by looking at other areas of the app that require it.

Here is a screenshare showing my setup:

---

<div class="post-metadata">

**Author:** ![raelyn](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/raelyn/32/2803_2.png) [@raelyn](https://community.weweb.io/u/raelyn)\
**Post date:** [September 2, 2023, 2:48am UTC](https://community.weweb.io/t/xano-auth-blocking-fetch-collection/4159/2 "2023-09-02T02:48:52Z")

</div>

Did you bind the ‘notes\_id’ under collections to the URL you are fetching from Xano?

Url has to be /notes/{bind your variable here}

And also it’s expecting a meditation id in Xano so make sure you have that too

---

<div class="post-metadata">

**Author:** ![mark](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/mark/32/4163_2.png) [@mark](https://community.weweb.io/u/mark)\
**Post date:** [September 2, 2023, 4:25am UTC](https://community.weweb.io/t/xano-auth-blocking-fetch-collection/4159/3 "2023-09-02T04:25:49Z")

</div>

Where do you bind it? I didnt think I’d need the ‘notes\_id’ because when I test run it in Xano all I have to do is enter the meditation\_id and the auth user and it works. I don’t give it a notes id as an input.

If I’m supposed to in Weweb do I set that up as a header?

---

<div class="post-metadata">

**Author:** ![mark](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/mark/32/4163_2.png) [@mark](https://community.weweb.io/u/mark)\
**Post date:** [September 2, 2023, 4:33am UTC](https://community.weweb.io/t/xano-auth-blocking-fetch-collection/4159/4 "2023-09-02T04:33:34Z")

</div>

Actually, I fixed it by completely changing how I was looking it up. I Couldn’t see the forest through the trees and I made it m ore complicated than it needed to be lol

---

<div class="post-metadata">

**Author:** ![CedricFR73](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/cedricfr73/32/6618_2.png) [@CedricFR73](https://community.weweb.io/u/CedricFR73)\
**Post date:** [October 1, 2024, 11:59am UTC](https://community.weweb.io/t/xano-auth-blocking-fetch-collection/4159/5 "2024-10-01T11:59:02Z")

</div>

Hello everyone,

Still no explanation or solution to this problem?

I suspect a bug between Xano and Weweb in Xano plugins.

On my end, I have a notification system, including an API call to check the number of unread notifications. On Xano’s side: Query all records where notification.user\_id == auth.id AND readed\_at == null, with an output of type COUNT.

When I have unread notifications, everything works fine.  
However, when I have no unread notifications, Xano correctly returns 0 without any issue, but Weweb throws a 401 error.

Why?
