Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

Longpolling Error: Function declared as capable of handling request of type 'json' but called with a request of type 'http'

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
9265 Vues
Avatar
Marius Stedjan

I'm getting a lot of this error in my logs:

odoo.http: , /longpolling/poll: Function declared as capable of handling request of type 'json' but called with a request of type 'http'

This seems to have started all of a sudden. I've tried editing the nginx config, but nothing seems to help.

Have anybody else experienced this error?

Odoo config:

[options]

admin_passwd = password

db_host = False

db_port = False

db_user = odoo

db_password = password

dbfilter = dbname

addons_path = /usr/lib/python2.7/dist-packages/odoo/addons

addons_path = /odoo/enterprise,/odoo/odoo-server/addons,/odoo/custom/themes,/odoo/custom/addons,/odoo/custom/modules

logfile = /var/log/odoo/odoo-server.log

logrotate = True

xmlrpc_interface = 127.0.0.1

xmlrpc_port = 8069

longpolling_port = 8072

proxy_mode = True

workers = 8

limit_memory_hard = 1677721600

limit_memory_soft = 629145600

limit_time_cpu = 600

limit_time_real = 1200

max_cron_threads = 1

Nginx config:

# workaround for nginx's inability to escape the $ character. see:

# https://openresty.org/download/agentzh-nginx-tutorials-en.html#nginx-variables-escaping-dollar

geo $dollar {

default "$";

}

upstream odoo {

server 127.0.0.1:8069 weight=1 fail_timeout=0;

}

upstream odoo-im {

server 127.0.0.1:8072 weight=1 fail_timeout=0;

}

# Proxy Headers

proxy_set_header Host $host;

proxy_set_header X-Forwarded-Host $host;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;

proxy_set_header X-Forward-Proto $scheme;

# General Proxy Config

proxy_connect_timeout 3600s;

proxy_send_timeout 3600s;

proxy_read_timeout 3600s;

proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;

# Increase Proxy buffer to handle large Odoo web requests

proxy_buffers 16 64k;

proxy_buffer_size 128k;

# Redirect www. to bare domain

server {

listen 80;

server_name www.domain.com;

return 301 http://domain.com$request_uri;

}

server {

listen 443 ssl;

ssl_certificate /etc/nginx/ssl/domain.com.chained.crt;

ssl_certificate_key /etc/nginx/ssl/domain.com.key;

server_name www.domain.com;

return 301 https://domain.com$request_uri;

}

server {

listen 80;

server_name domain.com;

# Log file locations

access_log /var/log/nginx/domain.access.log;

error_log /var/log/nginx/domain.error.log;

#Redirect non-POS and related content in https to allow POS in http

location ~ ^(?!/pos/|/web/binary/company_logo|/aspl_pos_prod_operation/static/|/?[^/]*/website/action/|/web/webclient/|/web/content/|/web_editor/static/|/web/css/|/web/static/|/point_of_sale/static).*$ {

proxy_redirect off;

if ($request_method != POST) {

# rewriting a POST request has no sense as the browser will do the request as GET

rewrite ^(.*)$ https://$host$1 permanent;

}

if ($request_method = POST) {

proxy_pass http://odoo;

}

}

location = /longpolling/poll {

proxy_redirect off;

proxy_pass http://odoo-im;

}

location / {

proxy_redirect off;

proxy_pass http://odoo;

}

}

server {

listen 443 ssl;

server_name domain.com;

# Log file locations

access_log /var/log/nginx/domain.access.log;

error_log /var/log/nginx/domain.error.log;

# Enable SSL

ssl on;

ssl_certificate /etc/nginx/ssl/domain.com.chained.crt;

ssl_certificate_key /etc/nginx/ssl/domain.com.key;

ssl_session_timeout 30m;

keepalive_timeout 600;

ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';

ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;

ssl_prefer_server_ciphers on;

# Increase maximum accepted body size

client_max_body_size 512m;

# Increase Proxy buffer to handle large Odoo web requests

proxy_buffers 16 64k;

proxy_buffer_size 128k;

# General Proxy Config

proxy_connect_timeout 3600s;

proxy_send_timeout 3600s;

proxy_read_timeout 3600s;

proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;

# Default Settings

proxy_redirect off;

proxy_buffering off;

# Enable gzip

gzip_types text/css text/less text/plain image/svg+xml text/xml application/xml application/json application/x-font-ttf font/opentype application/javascript application/xhtml+xml;

gzip on;

location /images {

root /var/www;

autoindex on;

}

# Redirect POS to http

location ~ ^/pos/ {

rewrite ^(.*)$ http://$host:80$1 permanent;

}

location /longpolling {

proxy_redirect off;

proxy_pass http://odoo-im;

}

location / {

proxy_redirect off;

proxy_pass http://odoo;

}

# cache some static data in memory for 60 mins.

location ~* ^/(openerp|openobject|web)/static/ {

proxy_cache_valid 200 60m;

proxy_buffering on;

expires 864000;

proxy_pass http://odoo;

}

}

2
Avatar
Ignorer
Samo Arko

have you fixed this error? I'm having the same one.

Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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