# URL Export 502 Bad Gateway

**URL:** <https://discuss.tryton.org/t/url-export-502-bad-gateway/8487>\
**Category:** System Administrator\
**Created:** [April 16, 2025, 6:57am UTC](https://discuss.tryton.org/t/url-export-502-bad-gateway/8487 "2025-04-16T06:57:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)\
**Post date:** [April 16, 2025, 7:07am UTC](https://discuss.tryton.org/t/url-export-502-bad-gateway/8487/2 "2025-04-16T07:07:25Z")

</div>

Probably you are hitting the gunicorn timeout as it should take a while to export the records. IIRC the default timeout is 60seconds, so if you get the error after waiting such time this confirms my teory. In this case you will find the solution here:

> [@\[critical\] worker timeout](https://discuss.tryton.org/t/critical-worker-timeout/6996/9):
>
> @ced , in the corresponding [MR](https://foss.heptapod.net/tryton/tryton-docker/-/merge_requests/19#note_338817) you say, there is an environment variable to set the gunicorn timeout in docker. I am facing also the problem @pokoli experienced, that using GUNICORN\_CMD\_ARGS="--timeout 0" doesn’t work. Can you help and explain, how to do it? Thank you.

---

_[View the full topic](https://discuss.tryton.org/t/url-export-502-bad-gateway/8487)._
