# Error:network\_request\_failed for Web API Get on Android

**URL:** <https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719>\
**Category:** Questions about Thunkable X\
**Tags:** webapi\
**Created:** [January 9, 2021, 9:46am UTC](https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719 "2021-01-09T09:46:50Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![imponiaamanl6pe](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@imponiaamanl6pe](https://community.thunkable.com/u/imponiaamanl6pe)\
**Post date:** [January 9, 2021, 9:46am UTC](https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719/1 "2021-01-09T09:46:50Z")

</div>

Hello Thunkable,  
I am connecting web api to my app. it works fine in livetest window but it throw me a error NETWORK REQUEST FAILED while test/install app on my android phone.  
pls reply asap …

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [January 9, 2021, 10:08am UTC](https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719/2 "2021-01-09T10:08:54Z")

</div>

@imponiaamanl6pe,

Welcome to the Community!

Can you share the blocks you used to call the web api?

In particular, the URLs you are using. Of course, you should hide any API keys.

---

<div class="post-metadata">

**Author:** ![imponiaamanl6pe](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@imponiaamanl6pe](https://community.thunkable.com/u/imponiaamanl6pe)\
**Post date:** [January 9, 2021, 11:13am UTC](https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719/3 "2021-01-09T11:13:18Z")

</div>

![failed](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/e/6e809a65452fb842663c760bebaf107d24b63636.jpeg)

Check!

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [January 9, 2021, 11:38am UTC](https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719/4 "2021-01-09T11:38:59Z")

</div>

Hmmm, I am not able to access that resource.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/7/e77e36a36b0a3ff8edcf4d66c1bbe3c69651b0ad.png)

Server/Hosting permissions are NOT my long suit. In fact, they are all but a complete mystery to me. But my experience using the Firebase Emulator and thunkable has been that Thunkable Web can access local host resource, while apps cannot. This makes me wonder if perhaps the machine you are using the web Live Test on has permissons to [https://youngmanbeta.com/testandroid](https://youngmanbeta.com/testandroid), but [https://youngmanbeta.com/testandroid](https://youngmanbeta.com/testandroid) is not a public site.

Again, I apologize, I don’t really understand how permissons work. Hopefully some of the other power thunkers can help you.

---

<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:** [January 9, 2021, 11:45am UTC](https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719/5 "2021-01-09T11:45:33Z")

</div>

You are right.

`https://youngmanbeta.com` requires authentication and therefore you need more input in the URL if the site permits.

---

<div class="post-metadata">

**Author:** ![imponiaamanl6pe](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@imponiaamanl6pe](https://community.thunkable.com/u/imponiaamanl6pe)\
**Post date:** [January 9, 2021, 12:16pm UTC](https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719/7 "2021-01-09T12:16:01Z")

</div>

Bro its a api URL so i think you check it on postman via get method .

 ![postman](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/8/68a80f2da37ba94f4a5cf96952cb02fdab20c311.png)  
api work on browser livetest and also in iphone but it not on Android 😕

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [January 9, 2021, 12:25pm UTC](https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719/8 "2021-01-09T12:25:16Z")

</div>

Here are my blocks and results when testing with Reponsive Web app using Chrome on Windows 10

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/1/01c3672bb7ac447fb13e72befe82d8d5e48c6fe9.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/7/377fb371a7e110490b588b479a787efc6f756ce0.png)

---

<div class="post-metadata">

**Author:** ![imponiaamanl6pe](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@imponiaamanl6pe](https://community.thunkable.com/u/imponiaamanl6pe)\
**Post date:** [January 9, 2021, 12:39pm UTC](https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719/10 "2021-01-09T12:39:26Z")

</div>

Because … you make spell error in url its a “testAndroid” not testandroid …  
pls send request again

correct url : [https://youngmanbeta.com/testAndroid](https://youngmanbeta.com/testAndroid)

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [January 9, 2021, 12:53pm UTC](https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719/11 "2021-01-09T12:53:16Z")

</div>

Thanks for the updated URL. I get the WORKING message on my android brower, but Thunkable Live Test on Android fails. I also verified the updated URL works on Web and iOS (images not shown). Unfortunately, I don’t have much more to add to the discussion.

I would recommend you reach out to Thunkable using the Chatbot on the Project Design page AND log an issue in [GitHub](https://github.com/thunkable/thunkable-issues/issues).

 ![Screenshot_20210109-044433_Thunkable](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/d/7d755a3aafb7866903972ac5381147695c8eb854.jpeg) ![Screenshot_20210109-044501_Chrome](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/a/5a04b87fb812a34142fcb530f49a9b31d6912ad4.jpeg)

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [January 9, 2021, 1:11pm UTC](https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719/12 "2021-01-09T13:11:57Z")

</div>

Sorry, had one more observation. I tried adding a webviewer to the screen to see if that would be able to access the URL. When I add the webviewer, the web API also starts working.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/5/35d30849005b28f9126a80d002b0954ccdd7320c.png)

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/e/7ed9bf0efa6b032d18122e8be422137fe4375be9.png)

Obviously this is not a fix, but it may be helpful to add to your GitHub ticket and act as a work around until Thunkable addresses the issue.

One other possibility to try might be to return a JSON message instead of straight text. Again, Thunkable SHOULD still work, but perhaps that change might work on android. Total W.A.G.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [January 9, 2021, 2:21pm UTC](https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719/13 "2021-01-09T14:21:12Z")

</div>

> [@imponiaamanl6pe](#):
>
> you make spell error in url its a “testAndroid”

Well, to be fair @imponiaamanl6pe, you had `testandroid` in your original screenshot:

> [@imponiaamanl6pe](#):
>
> ![failed](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/e/6e809a65452fb842663c760bebaf107d24b63636.jpeg)

* * *

Also, can tell us a bit more about your app. Is it just supposed to display the word working? From your blocks you also seem to have an “LoginScreen”, is there an authentication part to this too?

Thanks

---

<div class="post-metadata">

**Author:** ![imponiaamanl6pe](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@imponiaamanl6pe](https://community.thunkable.com/u/imponiaamanl6pe)\
**Post date:** [January 11, 2021, 4:10am UTC](https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719/14 "2021-01-11T04:10:19Z")

</div>

okay i accept it … but brother am also shared a postman Shot.

---

<div class="post-metadata">

**Author:** ![imponiaamanl6pe](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@imponiaamanl6pe](https://community.thunkable.com/u/imponiaamanl6pe)\
**Post date:** [January 11, 2021, 5:43am UTC](https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719/15 "2021-01-11T05:43:15Z")

</div>

after trying with other api it works but it does not work particularly with [https://youngmanbeta.com/](https://youngmanbeta.com/)…  
So i found it just because of my SSL cerificate ([youngmanbeta.com](http://youngmanbeta.com) ). certificate not allow android to connect .  
any idea about how resolve it ???

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [January 11, 2021, 9:45am UTC](https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719/16 "2021-01-11T09:45:22Z")

</div>

Unfortunately, internet protocols are a mystery to me.

---

<div class="post-metadata">

**Author:** ![imponiaamanl6pe](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@imponiaamanl6pe](https://community.thunkable.com/u/imponiaamanl6pe)\
**Post date:** [January 11, 2021, 10:03am UTC](https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719/17 "2021-01-11T10:03:24Z")

</div>

Okay … btw thankyou

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [January 11, 2021, 10:52am UTC](https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719/18 "2021-01-11T10:52:06Z")

</div>

I’m sure you have been “googling” the internet for solutions, but here was a promising article [https://developer.android.com/training/articles/security-ssl](https://developer.android.com/training/articles/security-ssl).

Best of luck!

---

<div class="post-metadata">

**Author:** ![tcdapps27m9de](https://avatars.discourse-cdn.com/v4/letter/t/f19dbf/32.png) [@tcdapps27m9de](https://community.thunkable.com/u/tcdapps27m9de)\
**Post date:** [March 20, 2024, 8:31pm UTC](https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719/19 "2024-03-20T20:31:20Z")

</div>

In my case, the Network Request Failed error was fixed on my apache web server:

grep SSLUseStapling /etc/apache2/conf-enabled/common.conf  
#SSLUseStapling on → must be set to off, as linux vm does not have external access  
SSLUseStapling off

Interestingly, this parameter only impacted Android 13 and above.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:30pm UTC](https://community.thunkable.com/t/error-network-request-failed-for-web-api-get-on-android/1042719/20 "2024-11-08T13:30:58Z")

</div>


