# Browser error with Trytond.bus

**URL:** https://discuss.tryton.org/t/browser-error-with-trytond-bus/6985
**Category:** System Administrator
**Created:** [February 13, 2024, 10:18am UTC](https://discuss.tryton.org/t/browser-error-with-trytond-bus/6985 "2024-02-13T10:18:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Xavi](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/x/8e8cbc/32.png) [@Xavi](https://discuss.tryton.org/u/Xavi)
#### Post date: [February 13, 2024, 10:18am UTC](https://discuss.tryton.org/t/browser-error-with-trytond-bus/6985/1 "2024-02-13T10:18:51Z")

</div>

Hello,  
I’ve configured Nginx as proxy for tryton to use notifications from trytond.bus, everything seems to be ok, I can now connect to Tryton via SSL, and the notifications are correctly displayed.  
But im constantly getting this error in firefox:

 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/4/45d58732fbd2a45d35a7d9244172fde625a7e339.png)  
 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/4/4e169942e6e1ae0e389e99170d03fbbdba805233.png)  
All I found about this is giving more Time-out time to Nginx, but doing this ends up on the same result but “502 Bad Gateway” instead, in Tryton configuration file I’ve only added [`allow_subscribe`](http://docs.tryton.org/projects/server/en/latest/topics/configuration.html#allow-subscribe) option to bus section, maybe theres something else missing? and I don’t know if this really matters, as the proxy is working as expected.  
Thanks.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 13, 2024, 10:34am UTC](https://discuss.tryton.org/t/browser-error-with-trytond-bus/6985/2 "2024-02-13T10:34:42Z")

</div>

Do you run the bus with the main server? If yes, it is not ideal but you must configure your WSGI server to have a timeout at least equal to the `[bus] long_polling_timeout`.

Ideally you should run the bus as separate process with the `--coroutine` option so it can handle long-polling requests without consuming too much resources. Or you must configure your WSGI server to use a “coroutine” like approach for the bus requests.

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [February 13, 2024, 10:35pm UTC](https://discuss.tryton.org/t/browser-error-with-trytond-bus/6985/3 "2024-02-13T22:35:18Z")

</div>

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