# Using Ximilar and Thunkable Error

**URL:** <https://community.thunkable.com/t/using-ximilar-and-thunkable-error/3126921>\
**Category:** Web API's\
**Tags:** beginner\
**Created:** [August 5, 2024, 11:16am UTC](https://community.thunkable.com/t/using-ximilar-and-thunkable-error/3126921 "2024-08-05T11:16:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshuatom20097wtkq0](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@joshuatom20097wtkq0](https://community.thunkable.com/u/joshuatom20097wtkq0)\
**Post date:** [August 5, 2024, 11:16am UTC](https://community.thunkable.com/t/using-ximilar-and-thunkable-error/3126921/1 "2024-08-05T11:16:30Z")

</div>

I was having issues trying to use Ximilar making an image recognition app. I had followed a tutorial  
and read a previous post with a similar issue. However, I am getting a different form of error. When I take a photo, the API is called, yet it sets the label to null, which I do not understand. I am including a photo of the code as a reference

 ![Screenshot_5-8-2024_11553_x.thunkable.com](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/b/8b15b7b2935612ceb94e880b70443db16847b1bd.jpeg)

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [August 5, 2024, 1:45pm UTC](https://community.thunkable.com/t/using-ximilar-and-thunkable-error/3126921/2 "2024-08-05T13:45:53Z")

</div>

Hi joshuatom20097wtkq0, welcome to Thunkable! 🎉

Be sure to check out [How to ask Great Questions v2.0](https://community.thunkable.com/t/how-to-ask-great-questions-v2-0/2689983/1), the [Community Guidelines](https://community.thunkable.com/t/community-guidelines/78/8), and our [Getting Started Guide](https://docs.thunkable.com/getting-started/get-started) to make the best of your Thunkable Community experience!

Could you drag another green error block to set label 15’s text to that green error block. It’ll look like this:  
 ![Screenshot 2024-08-05 at 9.45.29 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/f/bf5b55cf72f32d6f0791a55f7b5b9c4c2327d5ee.png)

---

<div class="post-metadata">

**Author:** ![joshuatom20097wtkq0](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@joshuatom20097wtkq0](https://community.thunkable.com/u/joshuatom20097wtkq0)\
**Post date:** [August 6, 2024, 7:51am UTC](https://community.thunkable.com/t/using-ximilar-and-thunkable-error/3126921/3 "2024-08-06T07:51:16Z")

</div>

Thank you. I did that, and the label still results in a “null” message

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [August 6, 2024, 1:54pm UTC](https://community.thunkable.com/t/using-ximilar-and-thunkable-error/3126921/4 "2024-08-06T13:54:05Z")

</div>

Thanks for checking on that! Since we can rule out an error connecting to the API, the issue will be with how the data is being pulled.

Have you been able to check this call in Postman to see if it works there as you have it set up? My familiarity with Ximilar is none but the likely place where this has gone wrong is in the nested value `records[1].best_label.name` Is that the correct property? When the value returned is null that means there is a lack of any value and so I would check the JSON to see if this is correct.

There is a great topic on how to parse JSON here: [API JSON Tutorial (Video)](https://community.thunkable.com/t/api-json-tutorial-video/1140575)

---

<div class="post-metadata">

**Author:** ![joshuatom20097wtkq0](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@joshuatom20097wtkq0](https://community.thunkable.com/u/joshuatom20097wtkq0)\
**Post date:** [August 9, 2024, 7:46pm UTC](https://community.thunkable.com/t/using-ximilar-and-thunkable-error/3126921/5 "2024-08-09T19:46:41Z")

</div>

Thank you, sorry for getting back to you a little late. I will check on that and see if that fixes anything.

---

<div class="post-metadata">

**Author:** ![joshuatom20097wtkq0](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@joshuatom20097wtkq0](https://community.thunkable.com/u/joshuatom20097wtkq0)\
**Post date:** [August 9, 2024, 8:03pm UTC](https://community.thunkable.com/t/using-ximilar-and-thunkable-error/3126921/6 "2024-08-09T20:03:29Z")

</div>

![Screenshot (3)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/6/2607a03c427269eb2faf5237d87ef2b10fd397f2.png)

I rearranged the order of the nested values the way the video depicted, yet I’m still getting the same error. I am definite that these are the correct properties.

---

<div class="post-metadata">

**Author:** ![brianl](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@brianl](https://community.thunkable.com/u/brianl)\
**Post date:** [August 9, 2024, 8:49pm UTC](https://community.thunkable.com/t/using-ximilar-and-thunkable-error/3126921/7 "2024-08-09T20:49:29Z")

</div>

Could you set the label to just the response? If the response is an object, please turn it into a JSON first. This way we can see what the entire return gives us.

---

<div class="post-metadata">

**Author:** ![joshuatom20097wtkq0](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@joshuatom20097wtkq0](https://community.thunkable.com/u/joshuatom20097wtkq0)\
**Post date:** [August 11, 2024, 7:33am UTC](https://community.thunkable.com/t/using-ximilar-and-thunkable-error/3126921/8 "2024-08-11T07:33:47Z")

</div>

![Screenshot_10-8-2024_213250_x.thunkable.com](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/6/06683fbb76d602a91306a45734f9643a3205299b.jpeg)  
 ![Screenshot_10-8-2024_213243_x.thunkable.com](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/f/5f70bb954fc466582ed8f600948d2e3bb23eb4b1.jpeg)  
when I set the label to just response, the app turns the label into a url, when i put labels response as get object from JSON, thats when the label turns into a null

---

<div class="post-metadata">

**Author:** ![brianl](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@brianl](https://community.thunkable.com/u/brianl)\
**Post date:** [August 12, 2024, 10:24pm UTC](https://community.thunkable.com/t/using-ximilar-and-thunkable-error/3126921/9 "2024-08-12T22:24:15Z")

</div>

From what you shared, it looks like we are not getting the response you are expecting. The response contains a URL which is why it doesn’t work when you turn it into an object. I would look into the API call to ensure it is correct.

---

<div class="post-metadata">

**Author:** ![joshuatom20097wtkq0](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@joshuatom20097wtkq0](https://community.thunkable.com/u/joshuatom20097wtkq0)\
**Post date:** [August 13, 2024, 8:25pm UTC](https://community.thunkable.com/t/using-ximilar-and-thunkable-error/3126921/10 "2024-08-13T20:25:22Z")

</div>

ok thank you. When i turned the image into a url and plugged it into the API, the photo is correctly sorted. So I’m pretty sure that the API just isn’t being called correctly. Do you also recommend that I turn the photo into that hexcode option instead of using the url

---

<div class="post-metadata">

**Author:** ![brianl](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@brianl](https://community.thunkable.com/u/brianl)\
**Post date:** [August 14, 2024, 8:18pm UTC](https://community.thunkable.com/t/using-ximilar-and-thunkable-error/3126921/11 "2024-08-14T20:18:21Z")

</div>

It would depend on the documentation and requirements of the API call. Most API calls would like either the file or the hexcode. I would refer to the docs of that API.
