# Failed to execute action "Script": Response code 500 (Internal Server Error)

**URL:** <https://community.fibery.io/t/failed-to-execute-action-script-response-code-500-internal-server-error/2078>\
**Category:** Bugs & Issues\
**Created:** [September 30, 2021, 12:12am UTC](https://community.fibery.io/t/failed-to-execute-action-script-response-code-500-internal-server-error/2078 "2021-09-30T00:12:52Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [December 6, 2023, 3:56am UTC](https://community.fibery.io/t/failed-to-execute-action-script-response-code-500-internal-server-error/2078/22 "2023-12-06T03:56:21Z")

</div>

> [@Matt\_Blais](#):
>
> _What would be most helpful for debugging would be to include the script line number of the error_.

**BEST CHRISTMAS PRESENT EVER: BETTER DEBUG INFO!** 😍

> ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/6/6b7c2694a833fc0715c77fc57082d451ca51048c.png)

Thank you @Sergey_Truhtanov (or whoever is responsible for this) 💖  
😸

---

<div class="post-metadata">

**Author:** ![Sergey\_Truhtanov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/sergey_truhtanov/32/13986_2.png) [@Sergey\_Truhtanov](https://community.fibery.io/u/Sergey_Truhtanov)\
**Post date:** [April 14, 2025, 9:12am UTC](https://community.fibery.io/t/failed-to-execute-action-script-response-code-500-internal-server-error/2078/23 "2025-04-14T09:12:48Z")

</div>

Script engine was upgraded to Nodejs 22, so feel free to use all recent apis and language features.

Editor on UI is not yet familiar with some recent Nodejs apis (like Array.flatMap for example), so you may see them underlined with red. But it should work okay. We will fix it with future releases.

---

<div class="post-metadata">

**Author:** ![helloitse](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/helloitse/32/498_2.png) [@helloitse](https://community.fibery.io/u/helloitse)\
**Post date:** [April 21, 2025, 6:45pm UTC](https://community.fibery.io/t/failed-to-execute-action-script-response-code-500-internal-server-error/2078/24 "2025-04-21T18:45:17Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/3/3217c984eabf89a1cb6ee4084521d57b306991f8.png)  
I’m running into an unhandled promise rejection error on an automation that’s been working consistently since January. When trying to trouble shoot, I’ve run into an even more puzzling problem where the script block is erroring when I add “console.”

Could this be tied to the Nodejs 22 update?

---

<div class="post-metadata">

**Author:** ![Sergey\_Truhtanov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/sergey_truhtanov/32/13986_2.png) [@Sergey\_Truhtanov](https://community.fibery.io/u/Sergey_Truhtanov)\
**Post date:** [April 22, 2025, 12:19pm UTC](https://community.fibery.io/t/failed-to-execute-action-script-response-code-500-internal-server-error/2078/25 "2025-04-22T12:19:07Z")

</div>

😔  
`console.log` will actually work, don’t pay attention to this error in Script editor. It’s a regression issue on UI from our side, when we tried to update code editor to support Node22 features. I will fix this. But once again, it will print your output correctly, it’s just an issue on UI in js editor.

Can you please share a link to Automation that started to fail recently? Maybe via private messages here in community. Or maybe paste the script itself here if it’s possible. So I can understand how it’s related to node22 upgrade… So far we didn’t receive any complains, but maybe it’s indeed related.

[Previous page](https://community.fibery.io/t/failed-to-execute-action-script-response-code-500-internal-server-error/2078.md?page=1)
