# How to configure html widget correctly?

**URL:** https://discuss.tryton.org/t/how-to-configure-html-widget-correctly/1415
**Category:** Developer
**Created:** [May 24, 2019, 11:02am UTC](https://discuss.tryton.org/t/how-to-configure-html-widget-correctly/1415 "2019-05-24T11:02:14Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)
#### Post date: [May 24, 2019, 11:02am UTC](https://discuss.tryton.org/t/how-to-configure-html-widget-correctly/1415/1 "2019-05-24T11:02:14Z")

</div>

Hi,

I was trying html widget on trytond 5.2 but I couldn’t make it work. I added it to a text field and a widget ([marketing\_automation/view/activity\_form.xml at develop · tryton/marketing\_automation · GitHub](https://github.com/tryton/marketing_automation/blob/develop/view/activity_form.xml#L34)) in the view form and configure [html] like says [Configuration file — Tryton server](http://docs.tryton.org/projects/server/en/latest/topics/configuration.html#html) but I receive the follow message.

Internal Server Error

**init** () got an unexpected keyword argument ‘response’

Do I need some other config?

---

<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: [May 24, 2019, 1:04pm UTC](https://discuss.tryton.org/t/how-to-configure-html-widget-correctly/1415/2 "2019-05-24T13:04:34Z")

</div>

> [@iehoshia](#):
>
> **init** () got an unexpected keyword argument ‘response’

Could you post the full traceback?

---

<div class="post-metadata">

### Author: ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)
#### Post date: [May 24, 2019, 3:38pm UTC](https://discuss.tryton.org/t/how-to-configure-html-widget-correctly/1415/3 "2019-05-24T15:38:55Z")

</div>

These is the only message I see in the console:  
{address bytes} [Fri May 24 10:56:35 2019] GET /demodb/ir/html/web.blog/1/content?language=en&title=Tryton =\> generated 192 bytes in 1 msecs (HTTP/1.1 500) 2 headers in 83 bytes ()

And in the web form

 ![image](https://discuss-cdn.tryton.org/uploads/default/original/1X/2dabc758cac61d987818d6474bf4598b8a24fd43.png)

I see the same message on [demo.tryton.org](http://demo.tryton.org) some days ago, but now it works well.

Thanks in advance.

---

<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: [May 24, 2019, 3:55pm UTC](https://discuss.tryton.org/t/how-to-configure-html-widget-correctly/1415/4 "2019-05-24T15:55:48Z")

</div>

I think you are using a buggy version of Werkzeug, see [auth\_required fails with werkzeug \>= 0.15 (#8332) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue8332)

---

<div class="post-metadata">

### Author: ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)
#### Post date: [May 24, 2019, 4:15pm UTC](https://discuss.tryton.org/t/how-to-configure-html-widget-correctly/1415/5 "2019-05-24T16:15:48Z")

</div>

I’m not using Werkzeug, I have a nginx as webserver and proxy, after I use uwsgi to start tryton with a socket. Do I need some special config for these case?

---

<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: [May 24, 2019, 4:25pm UTC](https://discuss.tryton.org/t/how-to-configure-html-widget-correctly/1415/6 "2019-05-24T16:25:52Z")

</div>

If you are using trytond, you are using Werkzeug.

---

<div class="post-metadata">

### Author: ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)
#### Post date: [May 24, 2019, 4:51pm UTC](https://discuss.tryton.org/t/how-to-configure-html-widget-correctly/1415/7 "2019-05-24T16:51:43Z")

</div>

Yes, it was the trouble, after I upgrade to werzeug 0.15.4 it works fine. Thanks.

---

<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: [June 23, 2019, 4:51pm UTC](https://discuss.tryton.org/t/how-to-configure-html-widget-correctly/1415/8 "2019-06-23T16:51:43Z")

</div>

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