This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Description
Preconditions (*)
- Version 2.x
Steps to reproduce (*)
- Instanciate a \Storyblok\Client object
- Call the "resolveLinks" method with the "story" parameter passed to it
- Call the "resolveRelations" method and add some relations to the client
- Call the "getStoryByUuid" method to fetch a story by its UUID
- Watch your RAM while the whole process is running
Expected result (*)
- The query is made with no issue and the RAM isn't consumed more than it should
Actual result (*)
- The RAM decreases until it is completely consumed by the process
- The process gets killed
Explanation
The bug seems to have appeared in the commit #adb52f212e5f3ff38457ea4c7781a85f9f99e460 after adding the calls to the enrichStory method in the responseHandler method.
When I put a dump() in the enrichContent method, it parses way more data than when the resolveRelations method isn't called.