# Web API crashes app

**URL:** <https://community.thunkable.com/t/web-api-crashes-app/724438>\
**Category:** Questions about Thunkable X\
**Created:** [August 6, 2020, 5:02pm UTC](https://community.thunkable.com/t/web-api-crashes-app/724438 "2020-08-06T17:02:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrtwocanes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mrtwocanes/32/32268_2.png) [@mrtwocanes](https://community.thunkable.com/u/mrtwocanes)\
**Post date:** [August 6, 2020, 5:02pm UTC](https://community.thunkable.com/t/web-api-crashes-app/724438/1 "2020-08-06T17:02:18Z")

</div>

I’m running this API on my private server. Using this link:

[http://209.50.62.89/api.php?name=pen](http://209.50.62.89/api.php?name=pen)

gives me this result:

{“status”:200,“status\_message”:“Product Found”,“data”:10}  
“10” is the correct data for “pen”.

Trying these blocks crashes my app.

![Screenshot from 2020-08-06 09-54-27](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/f/6f9714cb1e3590b110e130599ebade7fba20fcda.png)

Any idea what I’m doing wrong?

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [August 6, 2020, 5:31pm UTC](https://community.thunkable.com/t/web-api-crashes-app/724438/2 "2020-08-06T17:31:52Z")

</div>

Hey @mrtwocanes,

Just tested this on my end on iOS Live Companion. Seeing no issues whatsoever.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/f/df5359e95b32370b84e90acec34edf4867965c61.png)

## However

When testing this on Web App it crashes. Are you referring to Web Apps specifically? If not, what device are you using?

Thanks

---

<div class="post-metadata">

**Author:** ![mrtwocanes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mrtwocanes/32/32268_2.png) [@mrtwocanes](https://community.thunkable.com/u/mrtwocanes)\
**Post date:** [August 6, 2020, 5:46pm UTC](https://community.thunkable.com/t/web-api-crashes-app/724438/3 "2020-08-06T17:46:15Z")

</div>

“eoinparkinson”, thank-you for your reply.

I typically test on a Samsung S6 and a Samsung S9 running the Thunkable Live App. I just tried to test with “Live Test” and then with “Preview as a responsive web app” from the Live Test popup. They both went white and have not changed, so I assume that each crashed. Web App immediately produces a white screen, so no joy there either.

The screen in question works just fine, no crashes UNTIL I put the Web\_API1 “Get” block into place.

I don’t have an iOS device, so I can’t test it on that platform.

---

<div class="post-metadata">

**Author:** ![mrtwocanes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mrtwocanes/32/32268_2.png) [@mrtwocanes](https://community.thunkable.com/u/mrtwocanes)\
**Post date:** [August 6, 2020, 7:27pm UTC](https://community.thunkable.com/t/web-api-crashes-app/724438/4 "2020-08-06T19:27:25Z")

</div>

Well, I fixed it. I’m just not sure how. I created a new project and recreated the code and it started working. I copied the new blocks to my existing project and Bob’s yer uncle, it was working.

![Screenshot from 2020-08-06 12-27-52](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/1/c13cab828f8760dfc9c9f60f7f1aaa35ddd50657.png)

Knowing the code worked for you, helped me to focus. 😂

Thanks for your help!!

---

<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:** [August 6, 2020, 7:38pm UTC](https://community.thunkable.com/t/web-api-crashes-app/724438/5 "2020-08-06T19:38:14Z")

</div>

@mrtwocanes you seem to have 2 variables with similar names.

There’s `app apiUrl` and `app ApiUrl` which are (were!) two different variables, this is why you weren’t getting the expected result.

---

<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, 12:26pm UTC](https://community.thunkable.com/t/web-api-crashes-app/724438/6 "2024-11-08T12:26:50Z")

</div>


