تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
8 الردود
24093 أدوات العرض

Docker install / PaaS Caprover / Odoo:14 / postgres:11 

I have set up SSL / TLS on my odoo instance (I use PaaS Caprover) but I have this error message when I want to synchronize my google calendar with the odoo calendar "The redirect URI in the request, http://www.oda-alexandre.com/google_account/authentication, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs." The problem comes from the fact that I only allow http(s) connections and that odoo sends redirects to http.

الصورة الرمزية
إهمال
أفضل إجابة

Make sure system parameter "web.base.url" set with http

Settings/Technical/Parameters/System Parameters

الصورة الرمزية
إهمال
أفضل إجابة

Work for me by adding this in the nginx configuration: 

  • proxy_set_header X-Forwarded-Host $host;

Inside location /

الصورة الرمزية
إهمال
أفضل إجابة

Whilst creating credential for your calendar app and setting up OAuth Client ID. Under the Authorized redirect URIs section, after you click + Add URI and when type your company’s Odoo URL address, use http rather than https.

الصورة الرمزية
إهمال
أفضل إجابة

odoo 16

same error, 

i modify  "web.base.url"  http ---> https

but no work.

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

Problem solved, thank you very much

الصورة الرمزية
إهمال

How you solve the issue. I have same issue

I'm wondering how you can do this. I did the same things but did not work for me.

أفضل إجابة

I came across a similar issue. Resolved the issue by adding the following "Authorized redirect URIs" to my project in google's cloud console. 

https://mycompany-example.com/google_gmail/confirm

الصورة الرمزية
إهمال
أفضل إجابة

There are many reasons that odoo fail with proxy. I try to show you some cases.

Enable Proxy mode

 First of all, check the proxy mode is enabled. This option tells odoo to configure werkzeug with XFH headers.

In configuration add the following option

proxy_mode = True

and in the command line

... --proxy_mode=True

Add XFH headers

The wekzeug process XFH and update request. So it is very important to add headers in the proxy (such as Apache or Nginx). Here is the list of XFH headers:

  • X-Forwarded-For 
  • X-Forwarded-Proto
  • X-Forwarded-Host
  • X-Forwarded-Port
  • X-Forwarded-Prefix

Note that, if the X-Forwarded-Host is not in headers, then the proxy fix process will be ignored by Odoo (I`m sure in Odoo 14). In my case, Nginx did not set X-Forwarded-Host properly, so everything went wrongs.

الصورة الرمزية
إهمال
أفضل إجابة

THIS WORKED FOR ME (THX VMCH):

Make sure system parameter "web.base.url" set with https 

Settings/Technical/Parameters/System Parameters


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
فبراير 18
8062
2
نوفمبر 15
5274
3
يونيو 25
1930
1
أبريل 24
2239
1
فبراير 25
3617