Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

General bug on Windows 10 (IIS Webserver) - error 500 - Odoo 14 and 15 - tracking link URL - utm link (relativ- link) not working -

Subscriure's

Get notified when there's activity on this post

This question has been flagged
windowsv14IISemail-marketingerror-500
2 Respostes
9419 Vistes
Avatar
Fabian Fügen

First of all, it looks like the problem arises with every new Windows installation on different machines. So this seems like a general buck. I hope a developer can test this to see what the problem is. 

Update 1: First look at my update at the end of the text to easily test it. 

Update 2: Look at the first answer of the post for better error description. 

Odoo version: Odoo 14.0-20211126 (Community Edition)

Testet also with Odoo 15


I'm creating an HTML e-mail with "e-mail marketing". Here I add various links and also internal links of my odoo-subpages. When I send a test email everything works fine, the links are not automatically converted to relative links (utm-links). When I send the mail to customers, the links are converted into relative links and and odoo converted them to utm-links for tracking.

If you open on one of the non working links in the e-mail, you will be directed correctly

to my page, but then the error 500 appears with the following text. :


500 - Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.


So it looks like the Odoo UTM-links does not work for incomprehensible reasons. The original link (relative link: http://site.mydomain.de/r/ZuJ/m/67) in the e-mail is corectly converted by Odoo when it is called and then appears in the address bar of the browser the UTM-Link:

https://mydomain.domain.de/kontakt?utm_source=testtest+2021-11-27+22%3A58%3A22&utm_medium=Email

Mydomain is of course my correct web address. So the redirection works correctly.


It looks like, every UTM-link, which are created below my homepage main page, are blocked. How can this happen? Does it maybe have something to do with the cookie settings on my site? (note my update at the end of the text)


Since I suspected a bug in the web server (IIS), I tested the whole thing directly on the server with localhost to bypass the web server. The error remains the same, so it is clear that it must be due to Odoo itself. 


The following UTM-link was displayed:

https://localhost/kontakt?utm_source=testtest+2021-11-27+22%3A58%3A22&utm_medium=Email


It should also be mentioned that Odoo is addressed via a subdomain over the Internet. That shouldn't have anything to do with the bug, however. 


Some utm-links work sometimes, but it also depends on whether I put them in the e-mail with http:// or https://. The link to my Odoo home page (only homesite) works, for example, and sometimes links external sites as well. However, Oddo internal sub-pages do not work at all.

I have now created a test database on Odoo.com and there I created a e-mail in E-Mail Marketing and added an internal link to a subpage of my own Odoo page. If I now open this link, the same error 500 on the UTM-link is also displayed on my page, although the whole thing was initially via the test database at Odoo.com. So my odoo site does not accept UTM links on all of my subpages.

I've tested this on different Windows machines. Even with completely new databases. The result is always the same, it doesn't work and the error is always the same. The Odoo versions are all up-to-date.


This message can be found in the log file (there is a different link like the one above, the error is the same):


ValueError: Setting 'domain' for a cookie on a server running locally (ex: localhost) is not supported by complying browsers. You should have something like: '127.0.0.1 localhost dev.localhost' on your hosts file and then point your server to run on 'dev.localhost' and also set 'domain' for 'dev.localhost' 

- - -

2021-11-27 23:08:05,614 6956 INFO My-Company werkzeug: 127.0.0.1 - - [27/Nov/2021 23:08:05] "GET /r/CM4/m/68 HTTP/1.1" 301 - 16 0.000 0.047

2021-11-27 23:08:05,692 6956 INFO My-Company werkzeug: 127.0.0.1 - - [27/Nov/2021 23:08:05] "GET /einfuehrende-buecher/?utm_source=test+2021-11-09+19%3A14%3A50+%28Kopie%29&utm_medium=Email HTTP/1.1" 500 - 4 0.016 0.031

2021-11-27 23:08:05,692 6956 ERROR My-Company werkzeug: Error on request:


Traceback (most recent call last):

  File "C:\Program Files\Odoo\python\lib\site-packages\werkzeug\serving.py", line 306, in run_wsgi

    execute(self.server.app)

  File "C:\Program Files\Odoo\python\lib\site-packages\werkzeug\serving.py", line 294, in execute

    application_iter = app(environ, start_response)

  File "C:\Program Files\Odoo\server\odoo\service\server.py", line 441, in app

    return self.app(e, s)

  File "C:\Program Files\Odoo\server\odoo\service\wsgi_server.py", line 113, in application

    return application_unproxied(environ, start_response)

  File "C:\Program Files\Odoo\server\odoo\service\wsgi_server.py", line 88, in application_unproxied

    result = odoo.http.root(environ, start_response)

  File "C:\Program Files\Odoo\server\odoo\http.py", line 1306, in __call__

    return self.dispatch(environ, start_response)

  File "C:\Program Files\Odoo\server\odoo\http.py", line 1272, in __call__

    return self.app(environ, start_wrapped)

  File "C:\Program Files\Odoo\python\lib\site-packages\werkzeug\middleware\shared_data.py", line 220, in __call__

    return self.app(environ, start_response)

  File "C:\Program Files\Odoo\server\odoo\http.py", line 1479, in dispatch

    result = ir_http._dispatch()

  File "C:\Program Files\Odoo 14.0.20210311\server\odoo\addons\website_sale\models\ir_http.py", line 15, in _dispatch

    return super(IrHttp, cls)._dispatch()

  File "C:\Program Files\Odoo\server\odoo\addons\website\models\ir_http.py", line 183, in _dispatch

    response = super(Http, cls)._dispatch()

  File "C:\Program Files\Odoo\server\odoo\addons\auth_signup\models\ir_http.py", line 19, in _dispatch

    return super(Http, cls)._dispatch()

  File "C:\Program Files\Odoo\server\odoo\addons\web_editor\models\ir_http.py", line 21, in _dispatch

    return super(IrHttp, cls)._dispatch()

  File "C:\Program Files\Odoo\server\odoo\addons\utm\models\ir_http.py", line 29, in _dispatch

    response = super(IrHttp, cls)._dispatch()

  File "C:\Program Files\Odoo\server\odoo\addons\http_routing\models\ir_http.py", line 505, in _dispatch

    return cls._handle_exception(routing_error)

  File "C:\Program Files\Odoo\server\odoo\addons\utm\models\ir_http.py", line 35, in _handle_exception

    return cls._set_utm(response)

  File "C:\Program Files\Odoo\server\odoo\addons\utm\models\ir_http.py", line 24, in _set_utm

    response.set_cookie(cook, request.params[var], domain=domain)

  File "C:\Program Files\Odoo\python\lib\site-packages\werkzeug\wrappers\base_response.py", line 481, in set_cookie

    samesite=samesite,

  File "C:\Program Files\Odoo\python\lib\site-packages\werkzeug\http.py", line 1150, in dump_cookie

    domain = _make_cookie_domain(domain)

  File "C:\Program Files\Odoo\python\lib\site-packages\werkzeug\_internal.py", line 394, in _make_cookie_domain

    "Setting 'domain' for a cookie on a server running locally (ex: "


Update:

If I generate a link with the "Link Tracker" module without assigning a "medium" or "source" to it, then this generated link works good. As soon as a "medium" or a "source" is assigned, the error 500 occurs when the generated link is opened. The problem already exists when only working locally with the localhost without a web server (Nginx, Apache or IIS). It is probably an internal problem of the Odoo web server "Werkzeug".



1
Avatar
Descartar
Fabian Fügen
Autor

Additional error description and possible workarounds

 

Additional error description

 

The UTM link is wrong or generated incorrectly and therefore the returned URL is not functional.

The value ? within ?utm_source is not accepted.

 If change "?" to "#" the link will work.

 

Examples of non-working URL and working URL

 

Not working URL:

https://sub.domain.com/book?utm_source=Test&utm_medium=Direct

 

Working URL:

 https://sub.domain.com/book#utm_source=Test&utm_medium=Direct

 

The tracking link generated by Odoo is of course always used as the original link. Such as: 

http://sub.domain.com/r/CQf


It is also possible to use the "=" sign ";" to be replaced so that the link works.


Working URL:

https://sub.domain.com/book?utm_source;Test&utm_medium;Direct


There are a couple of ways you can replace the characters to make the URL work.

 

Test on Linux-server

For comparison, on a Linux server the URL (link) work with the original characters:

https://12345.odoo.com/?utm_source=Newsletter&utm_medium=Email#scrollTop=0

Accordingly, the value is the same and there are no problems opening the link. The Odoo or Odoo-webserver (Werkzeug) programming on Windows also seems to have an error.

Basically, however, the URL should work with the default value ​​and it should not be necessary to replace the character. So I am assuming that something has to be adjusted in the Odoo-programming under Windows so that the values „?" , "=" , "&" work or are accepted. However, I am not a programmer and don't know my way around so I can find a solution here. As long as this is not changed, however, no Windows installation will work correctly, regardless of which primary web server (IIS, Apache or Nginx) is used on the server.

 

The bug also existing in Odoo 15.

 


Avatar
Fabian Fügen
Autor Best Answer

Here is the solution to the problem. It took me a while to find the very simple solution. The reverse proxy was configured incorrectly. Here I had the value http://localhost:8069 instead of http://127.0.0.1:8069.  Basically, the "localhost" is not used as a value for the revers proxy.  

I use the IIS web server as my webserver on Windows. That is definitely very special. Anyway it works fine now. On Linux, Nginx is normally used and here is the finished configuration code to copy anywhere on the internet, so the problem has probably not arisen here for anyone.

In order to test the linktracker local on your server, you can not work with the localhost address (http://localhost:8069/). Instead, simply call up odoo with http://127.0.0.1:8069 and test it there.




1
Avatar
Descartar
muhammed noufal

i have installed odoo in ubuntu and its perfectly working when accessing via ubuntu but when trying to access via windows , its either slow or not loading

Fabian Fügen
Autor

I also ended up using Ubuntu as the Oddo Server. Setting it up under Linux, especially if you are not familiar with the system, is not that easy. But in the end it worked without any problems. I recommend using Nginix on Windows instead of IIS web server, it should be much easier to setup and should work on Windows as well. I haven't tested it though.

Avatar
Peter Groft
Best Answer

If You're Trying to Load a Page with a 500 Internal Server Error:
1. Refresh the page.
2. Come back later.
3. Delete your browser's cookies.
4. Paste your URL into the website "Down for Everyone or Just Me."

Hope THis Helps,
Peter

0
Avatar
Descartar
Fabian Fügen
Autor

Thanks for your comment but that was not the reason why this error occurred. Please read the comment above, it has already been resolved.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
psycopg2.OperationalError: could not connect to server: Connection refused (0x0000274D/10061) WINDOWS 10 LOCAL HOST
windows authentication localhost v14
Avatar
0
de set. 21
9269
Acces ODOO 13 using IIS
windows server Odoo13.0 IIS
Avatar
2
d’oct. 20
7971
[E-mail marketing] Replied % settings Solved
reply marketing quickstart v14 email-marketing
Avatar
1
de maig 22
6180
Attached PDF file is not formatted properly
v14
Avatar
Avatar
1
de des. 25
404
Odoo14 alternative for Automated Translations through Gengo API module
v14
Avatar
Avatar
Avatar
Avatar
3
de set. 25
3829
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now