# Internal code error

**URL:** <https://discourse.codecombat.com/t/internal-code-error/32688>\
**Category:** Bugs\
**Created:** [April 18, 2022, 1:26pm UTC](https://discourse.codecombat.com/t/internal-code-error/32688 "2022-04-18T13:26:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [April 18, 2022, 1:26pm UTC](https://discourse.codecombat.com/t/internal-code-error/32688/1 "2022-04-18T13:26:03Z")

</div>

I’ve been getting this error whenever I try to do `hero.canCast('invisiblity')`  
 ![Screenshot 2022-04-18 08.24.29](https://us1.discourse-cdn.com/flex016/uploads/codecombat/original/3X/9/9/99a2afa7e3e2093daa4136c3aaa878d7d786e43f.png)  
Which is getting really frustrating…

---

<div class="post-metadata">

**Author:** ![moonwatcher348](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.codecombat.com/moonwatcher348/32/24126_2.png) [@moonwatcher348](https://discourse.codecombat.com/u/moonwatcher348)\
**Post date:** [April 18, 2022, 1:31pm UTC](https://discourse.codecombat.com/t/internal-code-error/32688/2 "2022-04-18T13:31:49Z")

</div>

Ah, I know, I messed up the spelling… anyways, could you please make the error clearer? 🙂
