# Network error when attempting to fetch resource

**URL:** <https://community.thunkable.com/t/network-error-when-attempting-to-fetch-resource/2017161>\
**Category:** Questions about Thunkable X\
**Tags:** error\
**Created:** [August 27, 2022, 3:24pm UTC](https://community.thunkable.com/t/network-error-when-attempting-to-fetch-resource/2017161 "2022-08-27T15:24:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![helpsmq1mf](https://avatars.discourse-cdn.com/v4/letter/h/3e96dc/32.png) [@helpsmq1mf](https://community.thunkable.com/u/helpsmq1mf)\
**Post date:** [August 27, 2022, 3:24pm UTC](https://community.thunkable.com/t/network-error-when-attempting-to-fetch-resource/2017161/1 "2022-08-27T15:24:38Z")

</div>

Hello, when I was making the app, I started debug. After that I noticed that I always have a network error error when attempting to fetch resource. No matter how I spin, it does not help.

 ![изображение](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/8/a8a56bb4ee9188c5d2012cd5d6b0c893a87807b5.png)  
That’s all the report I have.

 ![изображение](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/4/e4c0b0988486f62bdfb19abbadc3ed905144bbe9.png)  
Blocks

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [August 27, 2022, 4:08pm UTC](https://community.thunkable.com/t/network-error-when-attempting-to-fetch-resource/2017161/2 "2022-08-27T16:08:27Z")

</div>

If you’re getting a network error in a third-party client like Postman or in a browser as a url, then that has nothing to do with your blocks in Thunkable. Are you able to use the full url in a browser (e.g. Chrome) and have it work successfully? That’s the first step when wanting to use an API in Thunkable.

**Edit:** I think your full url is api.php?url=[https://www.ya.ru](https://www.ya.ru). That works and returns [https://ulvis.net/4u9I](https://ulvis.net/4u9I) in a browser. Is this a url-shortening service?

Also, what is the exact `error` you’re getting in Thunkable? Make sure you’re testing it on a mobile device. You’re not displaying the `response` so you might want to do that just in case it _does_ work.

---

<div class="post-metadata">

**Author:** ![helpsmq1mf](https://avatars.discourse-cdn.com/v4/letter/h/3e96dc/32.png) [@helpsmq1mf](https://community.thunkable.com/u/helpsmq1mf)\
**Post date:** [August 27, 2022, 4:21pm UTC](https://community.thunkable.com/t/network-error-when-attempting-to-fetch-resource/2017161/4 "2022-08-27T16:21:48Z")

</div>

Yes, this is a service to shorten the URL. I enter in the browser, and there is an exact error as from the header. And the network shows that the CORS request failed. I did not test on mobile, but I’ll look at it now…

---

<div class="post-metadata">

**Author:** ![helpsmq1mf](https://avatars.discourse-cdn.com/v4/letter/h/3e96dc/32.png) [@helpsmq1mf](https://community.thunkable.com/u/helpsmq1mf)\
**Post date:** [August 27, 2022, 4:26pm UTC](https://community.thunkable.com/t/network-error-when-attempting-to-fetch-resource/2017161/5 "2022-08-27T16:26:05Z")

</div>

It works on mobile, but I want it to work on a web-based. This is important!

---

<div class="post-metadata">

**Author:** ![helpsmq1mf](https://avatars.discourse-cdn.com/v4/letter/h/3e96dc/32.png) [@helpsmq1mf](https://community.thunkable.com/u/helpsmq1mf)\
**Post date:** [August 27, 2022, 4:30pm UTC](https://community.thunkable.com/t/network-error-when-attempting-to-fetch-resource/2017161/6 "2022-08-27T16:30:45Z")

</div>

response is not working, because error

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [August 27, 2022, 5:15pm UTC](https://community.thunkable.com/t/network-error-when-attempting-to-fetch-resource/2017161/7 "2022-08-27T17:15:39Z")

</div>

If you want web based youll need to proxy your api calls. The Thunkable web app infrastructure will cause these api call issues. On a mobile device, there’s no Cors issue.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [August 27, 2022, 9:57pm UTC](https://community.thunkable.com/t/network-error-when-attempting-to-fetch-resource/2017161/8 "2022-08-27T21:57:33Z")

</div>

See this:

> **[Integration and Security: Safely Integrate Apps to Third Party Data](https://blog.thunkable.com/how-to-safely-integrate-third-party-data)**
>
> New to app development? In this blog, Thunkable guides app developers through the process of using data from an external API safely and securely.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [November 25, 2022, 9:58pm UTC](https://community.thunkable.com/t/network-error-when-attempting-to-fetch-resource/2017161/9 "2022-11-25T21:58:32Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
