# נתקלתי בבעיה שקשה להבין, הושלם 500 Internal Server Error ב-46ms (ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.2ms)

**URL:** <https://meta.discourse.org/t/encountered-difficult-to-understand-problcompleted-500-internal-server-error-in-46ms-activerecord-0-0ms-0-queries-0-cached-gc-0-2ms/371926>\
**Category:** Support\
**Created:** [27 ביוני,‏ 2025,‏ 3:10am UTC](https://meta.discourse.org/t/encountered-difficult-to-understand-problcompleted-500-internal-server-error-in-46ms-activerecord-0-0ms-0-queries-0-cached-gc-0-2ms/371926 "2025-06-27T03:10:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![whiteCows](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/whitecows/32/509813_2.png) [@whiteCows](https://meta.discourse.org/u/whiteCows)\
**Post date:** [27 ביוני,‏ 2025,‏ 3:10am UTC](https://meta.discourse.org/t/encountered-difficult-to-understand-problcompleted-500-internal-server-error-in-46ms-activerecord-0-0ms-0-queries-0-cached-gc-0-2ms/371926/1 "2025-06-27T03:10:26Z")

</div>

Hello everyone, I am working on the integration reconstruction of discourse and encountered an unsolvable problem after updating the code. I hope to discuss it with everyone  
This is the code block I updated

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/3/9/b394cb2ce9ceb7dbc212d3e45ce04ef84c64af9a.png)

Then click the like button on the page, and a 500 error will pop up directly

Viewing backend container error

Using the same logic, the modified post bonus feature has no errors

What’s even more strange is that this code was still useful yesterday, but today I just updated the IP address for accessing it, and after restarting the container, this error appeared.  
Replacing the source code without any modifications will result in no errors.  
It’s really hard to understand.  
The most important thing is that tomorrow or in a while, my posting logic may also reach 500  
I am a Java developer and do not understand the language logic of Ruby. Do I need to update any more code?  
I hope the experts can provide some assistance. Thank you here.

Completed 500 Internal Server Error in 46ms (ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.2ms)

That’s really strange

---

_[View the full topic](https://meta.discourse.org/t/encountered-difficult-to-understand-problcompleted-500-internal-server-error-in-46ms-activerecord-0-0ms-0-queries-0-cached-gc-0-2ms/371926)._
