Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6370 Zobrazení
Hello guys,
I am getting this error after configuring nginx, I followed the odoo deployment documentation. This error appears when I want to import a csv file.
Your help is highly appreciated.

SyntaxError: expected expression, got '<'

https://example.com/web#action=import&cids=1&menu_id=259&model=product.template:1
Traceback:
DOMEval@https://example.com/web/static/lib/jquery/jquery.js:111:12
globalEval@https://example.com/web/static/lib/jquery/jquery.js:345:10
text script@https://example.com/web/static/lib/jquery/jquery.js:9640:11
ajaxConvert@https://example.com/web/static/lib/jquery/jquery.js:8787:19
done@https://example.com/web/static/lib/jquery/jquery.js:9255:15 callback/<@https://example.com/web/static/lib/jquery/jquery.js:9548:17
Avatar
Zrušit
Autor Nejlepší odpověď

I found the solution, it was the client_max_body_size in nginx, to fix it:

sudo nano /etc/nginx/nginx.conf

client_max_body_size 500M;

because the file size was more than 140M.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
zář 24
2266
1
kvě 24
3457
2
kvě 24
14756
0
říj 17
3528
2
čvn 16
13690