# Xano -\> WeWeb Axios error

**URL:** <https://community.weweb.io/t/xano-weweb-axios-error/9843>\
**Category:** How do I?\
**Tags:** xano\
**Created:** [July 20, 2024, 7:26am UTC](https://community.weweb.io/t/xano-weweb-axios-error/9843 "2024-07-20T07:26:49Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Byted](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/byted/32/9993_2.png) [@Byted](https://community.weweb.io/u/Byted)\
**Post date:** [July 20, 2024, 7:26am UTC](https://community.weweb.io/t/xano-weweb-axios-error/9843/1 "2024-07-20T07:26:49Z")

</div>

I’m getting this error when trying to set up collection from Xano plugin. I can’t get my API or fetch any data. Please help! Just followed the WeWeb tutorial on how to connect Xano. I’m a complete newbie!  
stack: "AxiosError: Network Error at c.onerror ([https://editor-cdn.weweb.io/public/js/chunk-vendors.c8e8a31e.js:499:161324](https://editor-cdn.weweb.io/public/js/chunk-vendors.c8e8a31e.js:499:161324)) at ni.request (http. BTW not full error, (newbies can only post 2 links)

---

<div class="post-metadata">

**Author:** ![andreas](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/andreas/32/7349_2.png) [@andreas](https://community.weweb.io/u/andreas)\
**Post date:** [July 20, 2024, 8:53am UTC](https://community.weweb.io/t/xano-weweb-axios-error/9843/2 "2024-07-20T08:53:37Z")

</div>

Have you seen this issue? [Axios error while sending data from WeWeb to Xano](https://community.weweb.io/t/axios-error-while-sending-data-from-weweb-to-xano/9824)

It’s probably because you haven’t set proper authentications settings in Xano.

---

<div class="post-metadata">

**Author:** ![Byted](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/byted/32/9993_2.png) [@Byted](https://community.weweb.io/u/Byted)\
**Post date:** [July 21, 2024, 5:27am UTC](https://community.weweb.io/t/xano-weweb-axios-error/9843/3 "2024-07-21T05:27:09Z")

</div>

Yes, I saw this issue. I did authenticate the swagger API and it still does not work. I followed the WeWeb tutorial exactly to configure the collections and plugins from Xano.

---

<div class="post-metadata">

**Author:** ![WeeeeeWeb](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/weeeeeweb/32/9689_2.png) [@WeeeeeWeb](https://community.weweb.io/u/WeeeeeWeb)\
**Post date:** [July 21, 2024, 9:57am UTC](https://community.weweb.io/t/xano-weweb-axios-error/9843/4 "2024-07-21T09:57:46Z")

</div>

Using XANO also, and there can be some issues:

Are you setting a collection or the Metadata API? If the first one, then:

1. You are pushing the collection without having an authToken created if user authentication is enabled. I suggest you create a login page and login the user, then push the collection again.
2. You are using a collection with filters where the filter is mandatory in the input and the value you are sending is zero. Just create a input field or variable in weweb and add the value there.
3. You are using a collection that it is trying to query something that the response is empty. In that case go to the conditional query in XANO and enable “Ignore empty values” for the filter.

Check also the “Request History” in XANO, usually it will tell you the error itself.

---

<div class="post-metadata">

**Author:** ![Byted](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/byted/32/9993_2.png) [@Byted](https://community.weweb.io/u/Byted)\
**Post date:** [July 22, 2024, 7:05am UTC](https://community.weweb.io/t/xano-weweb-axios-error/9843/5 "2024-07-22T07:05:01Z")

</div>

Hello, I followed this exactly:[Xano data source | WeWeb Documentation](https://docs.weweb.io/plugins/data-sources/xano-data.html#add-xano-plugin)(did not follow optional instructions) . I double checked the YT video WeWeb made for connecting the data.

I tried doing the login page and I got an API hit from Xano request history:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/6/6e16e0b429712a0c80c5c358def8e64c95c485da.png) with 500 errors:  
Xano has no request history or API hits for the fetching data with I am trying to set the collection in WeWeb.

However, WeWeb got the another error: Sign up  
Workflow triggered an error  
name: “AxiosError”  
stack: "AxiosError: Request failed with status code 500 at ht ([https://editor-cdn.weweb.io/public/js/chunk-vendors.c8e8a31e.js:499:156118](https://editor-cdn.weweb.io/public/js/chunk-vendors.c8e8a31e.js:499:156118)) at XMLHttpRequest.u (https://editor-

---

<div class="post-metadata">

**Author:** ![WeeeeeWeb](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/weeeeeweb/32/9689_2.png) [@WeeeeeWeb](https://community.weweb.io/u/WeeeeeWeb)\
**Post date:** [July 22, 2024, 8:11am UTC](https://community.weweb.io/t/xano-weweb-axios-error/9843/6 "2024-07-22T08:11:42Z")

</div>

You mean the API endpoint had no “Request history”? Did you try going to “Run & Debug” and then checking the timing details? The output section should show you the error itself.

When you cascade this section you should see an output

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/141601858587d7fee1217c7ec2348f0c18bc810c.png)

---

<div class="post-metadata">

**Author:** ![chaefner](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/chaefner/32/9652_2.png) [@chaefner](https://community.weweb.io/u/chaefner)\
**Post date:** [July 23, 2024, 2:10pm UTC](https://community.weweb.io/t/xano-weweb-axios-error/9843/7 "2024-07-23T14:10:15Z")

</div>

I’m getting the same error when using the Xano plugin. No input or authentication required on this endpoint. Database is not empty.

 ![Bildschirmfoto 2024-07-23 um 16.06.34](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/9/9d3c6080cac43abb075c401218ce0ac5482061f2.png)

However, when sending the GET request via WeWeb Rest API Plugin, it works. Same via postman. So I assume there is something about the plugin itself.

---

<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:** [July 25, 2024, 10:12am UTC](https://community.weweb.io/t/xano-weweb-axios-error/9843/8 "2024-07-25T10:12:22Z")

</div>

Same problem 🆙

---

<div class="post-metadata">

**Author:** ![jptrinh](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/jptrinh/32/1493_2.png) [@jptrinh](https://community.weweb.io/u/jptrinh)\
**Post date:** [July 25, 2024, 2:13pm UTC](https://community.weweb.io/t/xano-weweb-axios-error/9843/9 "2024-07-25T14:13:37Z")

</div>

Hey @CedricFR73 , @chaefner , @Byted 👋  
How is your Xano Plugin configured?  
Can you make sure that Include credentials is disabled? As this option requires more setup and is not needed for most use-case

 ![CleanShot 2024-07-25 at 16.12.43](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/4/4cfe7223e9c0e2af226bb3d58c8ebb93818f33ec.png)

---

<div class="post-metadata">

**Author:** ![chaefner](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/chaefner/32/9652_2.png) [@chaefner](https://community.weweb.io/u/chaefner)\
**Post date:** [July 25, 2024, 4:10pm UTC](https://community.weweb.io/t/xano-weweb-axios-error/9843/10 "2024-07-25T16:10:00Z")

</div>

@jptrinh I can’t disable this option:

 ![Bildschirmfoto 2024-07-25 um 18.08.57](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/1ef4b18f62ecd6296e6763fd241887d2d0073ccb.png)

---

<div class="post-metadata">

**Author:** ![jptrinh](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/jptrinh/32/1493_2.png) [@jptrinh](https://community.weweb.io/u/jptrinh)\
**Post date:** [July 26, 2024, 7:26am UTC](https://community.weweb.io/t/xano-weweb-axios-error/9843/11 "2024-07-26T07:26:25Z")

</div>

Look into the Xano plugin settings in the Plugin panel (instead of the collection settings)

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [July 26, 2024, 8:18am UTC](https://community.weweb.io/t/xano-weweb-axios-error/9843/12 "2024-07-26T08:18:48Z")

</div>

This means that you have defined it globally at plugin level

---

<div class="post-metadata">

**Author:** ![chaefner](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/chaefner/32/9652_2.png) [@chaefner](https://community.weweb.io/u/chaefner)\
**Post date:** [July 26, 2024, 12:34pm UTC](https://community.weweb.io/t/xano-weweb-axios-error/9843/13 "2024-07-26T12:34:35Z")

</div>

That worked! Thanks @jptrinh 🙏 I’ve disabled this setting in the plugin settings and could load the collection with Xano integration. Hope that also solves the issue for the others.

 ![Bildschirmfoto 2024-07-26 um 14.31.19](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/1e640ea69bdc3b4f4dda139963f5db46e1633f8a.png)

Question: Are there any advantages/disadvantages between the Xano integration and the Rest API plugin? Or are they doing just the same thing?

---

<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:** [July 28, 2024, 8:02pm UTC](https://community.weweb.io/t/xano-weweb-axios-error/9843/14 "2024-07-28T20:02:16Z")

</div>

For me the option was disabled

---

<div class="post-metadata">

**Author:** ![jptrinh](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/jptrinh/32/1493_2.png) [@jptrinh](https://community.weweb.io/u/jptrinh)\
**Post date:** [July 29, 2024, 1:50pm UTC](https://community.weweb.io/t/xano-weweb-axios-error/9843/15 "2024-07-29T13:50:36Z")

</div>

Hey @CedricFR73  
Can you provide more context on your plugin/collection configurations?
