# Mautic REST-API returns 500 since update to 5.2.1

**URL:** <https://forum.mautic.org/t/mautic-rest-api-returns-500-since-update-to-5-2-1/34699>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [January 9, 2025, 5:27pm UTC](https://forum.mautic.org/t/mautic-rest-api-returns-500-since-update-to-5-2-1/34699 "2025-01-09T17:27:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![imog](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/imog/32/3813_2.png) [@imog](https://forum.mautic.org/u/imog)\
**Post date:** [January 9, 2025, 5:27pm UTC](https://forum.mautic.org/t/mautic-rest-api-returns-500-since-update-to-5-2-1/34699/1 "2025-01-09T17:27:48Z")

</div>

My Mautic version is: 5.2.1  
My PHP version is: 8.1.31  
My Database type and version is: 8.0.40 MySQL

Regardless of which endpoint i connect to, i get this in return:

```auto
curl http://apiuser:apipassword@localhost/api/contacts
{
    "errors": [
        {
            "message": "Looks like I encountered an error (error #500). If I do it again, please report me to the system administrator!",
            "code": 500,
            "type": null
        }
    ]
}

```

I do not get any error logged for this in Mautic logs.

---

<div class="post-metadata">

**Author:** ![imog](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/imog/32/3813_2.png) [@imog](https://forum.mautic.org/u/imog)\
**Post date:** [January 9, 2025, 8:01pm UTC](https://forum.mautic.org/t/mautic-rest-api-returns-500-since-update-to-5-2-1/34699/2 "2025-01-09T20:01:03Z")

</div>

My server was extremely busy (100% CPU). After cleaning this problem, the API started working again.  
Is there some kind of protection internaly that returns 500 in such case?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [January 11, 2025, 3:33pm UTC](https://forum.mautic.org/t/mautic-rest-api-returns-500-since-update-to-5-2-1/34699/3 "2025-01-11T15:33:35Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
