# Not a string or a UIstring issue - Hackathon Unit 5 - different student

**URL:** <https://forum.code.org/t/not-a-string-or-a-uistring-issue-hackathon-unit-5-different-student/35501>\
**Category:** Coding and Debugging Help\
**Created:** [November 29, 2021, 7:43pm UTC](https://forum.code.org/t/not-a-string-or-a-uistring-issue-hackathon-unit-5-different-student/35501 "2021-11-29T19:43:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathisd3](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mathisd3/32/2273_2.png) [@mathisd3](https://forum.code.org/u/mathisd3)\
**Post date:** [November 29, 2021, 7:43pm UTC](https://forum.code.org/t/not-a-string-or-a-uistring-issue-hackathon-unit-5-different-student/35501/1 "2021-11-29T19:43:17Z")

</div>

the UIString is going to be the death of me yet this year.

This student has console.logged each line that is having an issue. Up until line 36, all is good. I can’t figure out this issue that causes the errors

> **[Check out what I made](https://studio.code.org/projects/applab/JL6zkyw1mV9XsZlrFCXmJaTWEROQ4QhHDOmZfN6rAsw)**
>
> I wrote the code myself with Code.org

[Here is the Remix link](https://studio.code.org/projects/applab/KrQZ6mZI658zXu1izvLZP4Sr5PKXKVzuPAtwa9RfYtI/edit)

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [November 29, 2021, 9:27pm UTC](https://forum.code.org/t/not-a-string-or-a-uistring-issue-hackathon-unit-5-different-student/35501/2 "2021-11-29T21:27:21Z")

</div>

I see several problems in the code. For starters, the **onEvent** on line 33 should not be inside the function. The student should take that out and call the **updateScreenMore** function inside the **onEvent** like this…

function updateScreenMore() { …}

onEvent(“artButtn”, “click”, function( ) {  
updateScreenMore();  
}  
);

Secondly, in the **updateScreenMore** function, the student should call **getArtInfo()** before he/she starts using the filtered lists. The filtered lists are empty and hence the student is getting the UIString error.

Thirdly, on line 22 the student is comparing the image url with a number. He/she would need to correct that.

I hope this helps.

---

<div class="post-metadata">

**Author:** ![mathisd3](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mathisd3/32/2273_2.png) [@mathisd3](https://forum.code.org/u/mathisd3)\
**Post date:** [November 29, 2021, 9:39pm UTC](https://forum.code.org/t/not-a-string-or-a-uistring-issue-hackathon-unit-5-different-student/35501/3 "2021-11-29T21:39:29Z")

</div>

You are awesome. I hope one day I will be able to easily run through various student practices and know what the issue is as quickly as you do. Thanks again 🙂
