# HuggingFace Inference endpoint 504 error

**URL:** <https://discuss.huggingface.co/t/huggingface-inference-endpoint-504-error/70273>\
**Category:** Inference Endpoints on the Hub\
**Created:** [January 23, 2024, 3:22pm UTC](https://discuss.huggingface.co/t/huggingface-inference-endpoint-504-error/70273 "2024-01-23T15:22:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jccscop](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@jccscop](https://discuss.huggingface.co/u/jccscop)\
**Post date:** [January 23, 2024, 3:22pm UTC](https://discuss.huggingface.co/t/huggingface-inference-endpoint-504-error/70273/1 "2024-01-23T15:22:51Z")

</div>

Hello! I tried to set up a inference endpoint for a private model to do a transcription with diarization of mp3 files. It worked with files of 15 min when called using the python code to do requests. But today it does not work anymore for the same files, and return error 504. With a smaller file (2min of duration) the request returns the correct answer. When I am lookin at the logs on the endpoint it seems that the whole pipeline is running. Do you have any idea how to fix that?

---

<div class="post-metadata">

**Author:** ![michellehbn](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/michellehbn/32/58964_2.png) [@michellehbn](https://discuss.huggingface.co/u/michellehbn)\
**Post date:** [January 25, 2024, 12:52pm UTC](https://discuss.huggingface.co/t/huggingface-inference-endpoint-504-error/70273/2 "2024-01-25T12:52:35Z")

</div>

Hi @jccscop, Thanks for reporting - we’ve just applied a fix and this should now be working as expected. Please let us know though if you continue to see an error. Thanks again!

---

<div class="post-metadata">

**Author:** ![jccscop](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@jccscop](https://discuss.huggingface.co/u/jccscop)\
**Post date:** [January 29, 2024, 4:45pm UTC](https://discuss.huggingface.co/t/huggingface-inference-endpoint-504-error/70273/3 "2024-01-29T16:45:06Z")

</div>

Hello! Thanks for your help! It works now for the file of 15 minutes but it seems to fail for files of 40 minutes of duration. Now when running the code with python requests , the code hangs forever whereas the logs of the endpoint show that the code went to the end and did the post request. The duration of the run are not too long, it takes 2min for the 15 min audio file and 4-5 min for the 40 minutes audio files usually.

---

<div class="post-metadata">

**Author:** ![michellehbn](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/michellehbn/32/58964_2.png) [@michellehbn](https://discuss.huggingface.co/u/michellehbn)\
**Post date:** [January 30, 2024, 10:46am UTC](https://discuss.huggingface.co/t/huggingface-inference-endpoint-504-error/70273/4 "2024-01-30T10:46:21Z")

</div>

Hi @jccscop, Thanks for reporting. We’ve applied a fix though please let us know if you continue to see an issue. Thanks!
