# I got "command not allowed when used memory \> 'maxmemory'. error with my workflow

**URL:** <https://discuss.roboflow.com/t/i-got-command-not-allowed-when-used-memory-maxmemory-error-with-my-workflow/10624>\
**Category:** 🤝  Community Help\
**Created:** [July 21, 2025, 7:30am UTC](https://discuss.roboflow.com/t/i-got-command-not-allowed-when-used-memory-maxmemory-error-with-my-workflow/10624 "2025-07-21T07:30:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![juho\_Park](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/juho_park/32/6121_2.png) [@juho\_Park](https://discuss.roboflow.com/u/juho_Park)\
**Post date:** [July 21, 2025, 7:30am UTC](https://discuss.roboflow.com/t/i-got-command-not-allowed-when-used-memory-maxmemory-error-with-my-workflow/10624/1 "2025-07-21T07:30:02Z")

</div>

I got command not allowed when used memory \> ‘maxmemory’ error when inferece my workflow and also can’t create dedicated deployment with just “internal error”

My inference code is below. and [detect.roboflow.com](http://detect.roboflow.com) endpoint works well (v1) but [serverless.roboflow.com](http://serverless.roboflow.com) endpoint does not work

```auto
async def _execute_inference_with_retry(self, pil_img: Image.Image) -> list[dict]:
        async for attempt in self._retry_strategy:
            with attempt:
                return await asyncio.to_thread(
                    self._client.run_workflow,
                    workspace_name="semohae",
                    workflow_id="custom-workflow",
                    images={"image": pil_img},
                    use_cache=True,
                )

```

---

<div class="post-metadata">

**Author:** ![balthasar](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/balthasar/32/9692_2.png) [@balthasar](https://discuss.roboflow.com/u/balthasar)\
**Post date:** [July 21, 2025, 9:56am UTC](https://discuss.roboflow.com/t/i-got-command-not-allowed-when-used-memory-maxmemory-error-with-my-workflow/10624/2 "2025-07-21T09:56:19Z")

</div>

Hi @juho_Park,  
Sorry for the troubles. The Serverless v2 API had some temporary issues that have been resolved now. Could you please try again and let me know if it’s working for you now?

Balthasar

---

<div class="post-metadata">

**Author:** ![juho\_Park](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/juho_park/32/6121_2.png) [@juho\_Park](https://discuss.roboflow.com/u/juho_Park)\
**Post date:** [July 21, 2025, 11:54am UTC](https://discuss.roboflow.com/t/i-got-command-not-allowed-when-used-memory-maxmemory-error-with-my-workflow/10624/3 "2025-07-21T11:54:03Z")

</div>

Hi balthasar.

Now API works well.

Thank you for your fast response.  
Best regards

2025년 7월 21일 (월) 오후 7:07, Balthasar Huber via Roboflow \<[notifications@roboflow1.discoursemail.com](mailto:notifications@roboflow1.discoursemail.com)\>님이 작성:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [July 28, 2025, 11:54am UTC](https://discuss.roboflow.com/t/i-got-command-not-allowed-when-used-memory-maxmemory-error-with-my-workflow/10624/4 "2025-07-28T11:54:35Z")

</div>

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