# Why do I see “ network error when attempting to fetch resource” when using the Web api connection with SAP

**URL:** <https://community.thunkable.com/t/why-do-i-see-network-error-when-attempting-to-fetch-resource-when-using-the-web-api-connection-with-sap/1976289>\
**Category:** Questions about Thunkable X\
**Created:** [July 26, 2022, 9:59am UTC](https://community.thunkable.com/t/why-do-i-see-network-error-when-attempting-to-fetch-resource-when-using-the-web-api-connection-with-sap/1976289 "2022-07-26T09:59:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Application](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@Application](https://community.thunkable.com/u/Application)\
**Post date:** [July 26, 2022, 9:59am UTC](https://community.thunkable.com/t/why-do-i-see-network-error-when-attempting-to-fetch-resource-when-using-the-web-api-connection-with-sap/1976289/1 "2022-07-26T09:59:23Z")

</div>

Hi,  
I am trying to develop web api to connect with my SAP system.  
the url is the following [http://sr3xxxxxx.my:8000/zunlockuser/webunlockuser](http://sr3xxxxxx.my:8000/zunlockuser/webunlockuser)  
the error that i take is the following “network error when attempting to fetch resource”.  
Does thunkable support http connections?

[image|370x121](https://community.thunkable.com/uploads/short-url/7y08eKZ3xM4hZom7r5IuwNVHOdT.png)

my block is the following

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/8/58979002d23ed56b24199de457a232b55b62ed23.png)

---

<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:** [July 26, 2022, 10:14am UTC](https://community.thunkable.com/t/why-do-i-see-network-error-when-attempting-to-fetch-resource-when-using-the-web-api-connection-with-sap/1976289/2 "2022-07-26T10:14:18Z")

</div>

Hey @Application

Did you test this on a device or via the live preview in browser? If in browser this occurs, but not on mobile, it’s most certainly a CORS issue.

> [@\[Solved\] Project won't GET data from API in Web Preview \[CORS issue\]](https://community.thunkable.com/t/solved-project-wont-get-data-from-api-in-web-preview-cors-issue/1888743/7):
>
> At this time, web apps and web preview wont work with all api’s due to[CORS issues](https://intercom.help/thunkable/en/articles/4515338-what-is-the-cors-policy-affecting-my-web-app). One way to get around this issue would be to proxy the calls using a service like Xano as shown below. If you try the following URL in a web previewed Thunkable app, you’ll notice the issue that requires proxying the call. http://numbersapi.com/2022/year?json [updated video ^^^] The idea here is that if you have an API that you can’t access but want to be able to using web apps or live preview, yo…

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [July 26, 2022, 1:44pm UTC](https://community.thunkable.com/t/why-do-i-see-network-error-when-attempting-to-fetch-resource-when-using-the-web-api-connection-with-sap/1976289/3 "2022-07-26T13:44:06Z")

</div>

Where in your code you are I itiaslizing the `query parameters` if your `Web API`?

---

<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:** [October 24, 2022, 1:45pm UTC](https://community.thunkable.com/t/why-do-i-see-network-error-when-attempting-to-fetch-resource-when-using-the-web-api-connection-with-sap/1976289/4 "2022-10-24T13:45:00Z")

</div>

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