# Network error when calling Xano API

**URL:** <https://community.weweb.io/t/network-error-when-calling-xano-api/854>\
**Category:** Ask us anything\
**Created:** [July 23, 2022, 10:58am UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854 "2022-07-23T10:58:10Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soenke](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/soenke/32/998_2.png) [@Soenke](https://community.weweb.io/u/Soenke)\
**Post date:** [July 23, 2022, 10:58am UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/1 "2022-07-23T10:58:10Z")

</div>

Hi,

not sure if it is a bug or configuration issue on my side: When fetching a collection from Xano API in 3 of 10 cases WeWeb throws a Network error.

How can I fix this?

Here is an extract of the Error in WeWeb:  
stack: “Error: Network Error at e.exports ([https://editor-cdn.weweb.io/public/js/chunk-vendors.f83c0b3b.js:64:1241](https://editor-cdn.weweb.io/public/js/chunk-vendors.f83c0b3b.js:64:1241)) at g.onerror ([https://editor-cdn.weweb.io/public/js/chunk-vendors.f83c0b3b.js:257:2567](https://editor-cdn.weweb.io/public/js/chunk-vendors.f83c0b3b.js:257:2567)) at XMLHttpRequest.sentryWrapped ([https://browser.sentry-cdn.com/5.12.1/bundle.min.js:2:44863](https://browser.sentry-cdn.com/5.12.1/bundle.min.js:2:44863))”

message: “Network Error”

response: undefined

isAxiosError: true

toJSON: function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}

---

<div class="post-metadata">

**Author:** ![kevinwasie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/kevinwasie/32/402_2.png) [@kevinwasie](https://community.weweb.io/u/kevinwasie)\
**Post date:** [July 23, 2022, 11:21am UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/2 "2022-07-23T11:21:22Z")

</div>

@Soenke can you provide some more information on how the error is being produced? What’s the code/action/setup of your Xano request. That error is not very helpful to diagnose where the issue is. Screenshots are very helpful also.

---

<div class="post-metadata">

**Author:** ![Soenke](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/soenke/32/998_2.png) [@Soenke](https://community.weweb.io/u/Soenke)\
**Post date:** [July 23, 2022, 2:51pm UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/3 "2022-07-23T14:51:45Z")

</div>

@kevinwasie I attach some scrrenshots of the workflow which is leading into the fetch error (also attached).

Nothing special in there, just fetching the collection and then updating the selectedItem variable.

The error occurs from time to time with no reason, also when I am testing the workflow in the editor, and run the workflow via “Test workflow” 10 times, the error occurs sometimes, but sometimes not.

1. Action: Fetching the error

 ![Bildschirmfoto 2022-07-23 um 16.39.12](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/af60fd6c78f192c44ec176dbc5c3502f9f07a5fb.jpeg)

1. Action: Updating variable

 ![Bildschirmfoto 2022-07-23 um 16.39.29](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/4/41c8c2e3d3eb2dc9bc8a5ec2c70bd3e2deac6b59.jpeg)

1. Error in Collection occurs sometimes

 ![Bildschirmfoto 2022-07-23 um 16.44.42](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/6/67ed28d827195bfd90bdc2895c0239f9afff3fd5.jpeg)

---

<div class="post-metadata">

**Author:** ![kevinwasie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/kevinwasie/32/402_2.png) [@kevinwasie](https://community.weweb.io/u/kevinwasie)\
**Post date:** [July 23, 2022, 3:12pm UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/4 "2022-07-23T15:12:11Z")

</div>

Are you on the free plan for Xano?

Xano will throw a 429 error if you hit your rate limit, but that could be a culprit here.

---

<div class="post-metadata">

**Author:** ![Soenke](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/soenke/32/998_2.png) [@Soenke](https://community.weweb.io/u/Soenke)\
**Post date:** [July 23, 2022, 4:38pm UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/5 "2022-07-23T16:38:27Z")

</div>

Hey, I am using a paid plan in Xano.

In the logs I can also see that the response is transmitted as it should be. The error seems to occur on WeWeb side.

---

<div class="post-metadata">

**Author:** ![kevinwasie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/kevinwasie/32/402_2.png) [@kevinwasie](https://community.weweb.io/u/kevinwasie)\
**Post date:** [July 23, 2022, 5:39pm UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/6 "2022-07-23T17:39:35Z")

</div>

What is the response on Xano side?

---

<div class="post-metadata">

**Author:** ![Soenke](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/soenke/32/998_2.png) [@Soenke](https://community.weweb.io/u/Soenke)\
**Post date:** [July 24, 2022, 7:59am UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/7 "2022-07-24T07:59:48Z")

</div>

In Xano’s logs the response is an array of objects as intended.

Something like this:

 ![Bildschirmfoto 2022-07-24 um 10.01.28](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/d/d2220809379e54fb98703e76f55229354ef75ae3.jpeg)

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [July 27, 2022, 1:12pm UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/8 "2022-07-27T13:12:59Z")

</div>

Hi @Soenke,

Can you tell us what is the Xano response in WeWeb?

i.e. inside the error \> request \> data \> message as shown in some of these examples:

> **[🪲 Troubleshooting Workflows](https://docs.weweb.io/troubleshooting-workflows/#example-1-invalid-credentials)**
>
> Learn how to debug a Workflow when it doesn't seem to be working as expected.

---

<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:** [July 28, 2022, 7:50am UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/9 "2022-07-28T07:50:33Z")

</div>

HI @Soenke,  
we take a look at your project, and apparently you had a infinite loop of redirection to the login page. So you overflood Xano with requests, which was causing the issue.  
We fixed your checkUser workflow with a filter, so that you do not loop on the login page.  
We take note on this problem (you are not the only one) and we will probably add a security so this can’t happen.

Hope it help,

---

<div class="post-metadata">

**Author:** ![Soenke](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/soenke/32/998_2.png) [@Soenke](https://community.weweb.io/u/Soenke)\
**Post date:** [August 2, 2022, 7:09am UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/10 "2022-08-02T07:09:18Z")

</div>

Regarding the periodic 502 error I discovered that some of the Xano API calls response headers do not comply with CORS. In detail the “Access-Control-Allow-Origin: \*” parameter is missing in the response header. Strange thing is that the response is sometimes CORS compliant and sometimes not 🤔

 ![CORS-compliance](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/9/96626b7cf3e80901da96b08f0ba2f7e8478a1bff.png)

Found this interesting article about CORS, but the proposed fixes do not look sustainable to me:

> **[3 Ways to Fix the CORS Error — and How Access-Control-Allow-Origin works](https://medium.com/@dtkatz/3-ways-to-fix-the-cors-error-and-how-access-control-allow-origin-works-d97d55946d9)**
>
> How to fix the infamous CORS error — the right way. Learn why the CORS error appears, and 3 solutions to fix it!

---

<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:** [August 2, 2022, 9:39am UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/11 "2022-08-02T09:39:35Z")

</div>

Thats indeed strange. Can you check on Xano side why this behavior is happening? You will probably not being able to fix it by yourself as it is on Xano/server hands.  
If you manage to find why can you get back to us 🙂 ? If there is something on our side, i will be happy to help, but here it seems to be a server issue.

---

<div class="post-metadata">

**Author:** ![Soenke](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/soenke/32/998_2.png) [@Soenke](https://community.weweb.io/u/Soenke)\
**Post date:** [August 2, 2022, 9:53am UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/12 "2022-08-02T09:53:39Z")

</div>

Hi @aurelie , I forwarded the screenshots to Xano’s support, let’s see if they solve it (Crossing fingers).

I will definitely let you know…

---

<div class="post-metadata">

**Author:** ![kevinwasie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/kevinwasie/32/402_2.png) [@kevinwasie](https://community.weweb.io/u/kevinwasie)\
**Post date:** [August 2, 2022, 12:32pm UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/13 "2022-08-02T12:32:07Z")

</div>

@Michael_Xano

---

<div class="post-metadata">

**Author:** ![codage](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/codage/32/5833_2.png) [@codage](https://community.weweb.io/u/codage)\
**Post date:** [January 31, 2023, 6:35pm UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/14 "2023-01-31T18:35:40Z")

</div>

What was the latest update in this regard? I am having same error.

---

<div class="post-metadata">

**Author:** ![Soenke](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/soenke/32/998_2.png) [@Soenke](https://community.weweb.io/u/Soenke)\
**Post date:** [February 1, 2023, 7:20am UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/15 "2023-02-01T07:20:57Z")

</div>

Hi @codage to be honest I cannot really tell you how the issue was solved in my case. I exchanged a couple of emails with the Xano team and Michael and his team investigated. Was tricky. Then suddenly the error did no longer appear 🤷‍♂️ A bit strange but until now everything runs smoothly 🤞

I suggest that you contact the Xano support. They were really supportive. I recorded a loom video showing the error which helped them to understand the problem.

---

<div class="post-metadata">

**Author:** ![polina\_cigen](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@polina\_cigen](https://community.weweb.io/u/polina_cigen)\
**Post date:** [December 27, 2023, 2:10am UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/16 "2023-12-27T02:10:27Z")

</div>

Hi,  
I have the same issue while fetching the collection. It happens for different endpoints, not some particular one.  
I contacted Xano support, but the problem is not on their side. I tested their APIs in Postman, and there is no error, everything works fine. But in WeWeb I keep getting “Network Error”. Before it happened once in a while, and I thought it was related to Xano API rate limits, since this workspace is on a free plan. But now those errors are too frequent and very annoying. And I’m 100% confident that it’s not related to rate limits. Can anyone help, please? I can’t imagine going live with such a user experience ☹

 ![Screenshot 2023-12-26 at 23.25.26](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/17388ee4f696e0aa129ac0bf61720c9b5001d826.png)  
 ![Screenshot 2023-12-27 at 01.41.44](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/aecd67c172c5ba8adcca791e2d3c4ac1d0328a5f.png)

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [December 27, 2023, 9:54am UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/17 "2023-12-27T09:54:13Z")

</div>

Hi @polina_cigen 👋

> [@polina\_cigen](#):
>
> I tested their APIs in Postman, and there is no error, everything works fine.

Could you [create a support ticket](https://support.weweb.io/) with:

- a screenshot of the API call you made in Postman,
- the URL of the endpoint you called in Postman,
- If I need credentials to get a response from Xano, please also share those.

I will take a look.

---

<div class="post-metadata">

**Author:** ![polina\_cigen](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@polina\_cigen](https://community.weweb.io/u/polina_cigen)\
**Post date:** [December 27, 2023, 12:28pm UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/18 "2023-12-27T12:28:03Z")

</div>

Thanks, Joyce!  
I’ve just submitted a ticket.  
Appreciate your assistance and looking forward to your help!

---

<div class="post-metadata">

**Author:** ![Kunle](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@Kunle](https://community.weweb.io/u/Kunle)\
**Post date:** [December 27, 2023, 2:19pm UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/19 "2023-12-27T14:19:49Z")

</div>

I am hoping that this problem can be resolved. I’ve been getting the exact same error for a couple of days now.

Do I have to create a separate support ticket, or can I expect that whatever is done to solve this will apply across the board? @Joyce

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [December 27, 2023, 2:34pm UTC](https://community.weweb.io/t/network-error-when-calling-xano-api/854/20 "2023-12-27T14:34:57Z")

</div>

It’s better if you create a separate support ticket with credentials to your own app so we can test different solutions and you can follow the progress of the bug ticket.

[Next page](https://community.weweb.io/t/network-error-when-calling-xano-api/854.md?page=2)
