Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[10.0] Mailgun's callback to /mailgun/notify returns 500 #157

Open
vodwood opened this issue Sep 23, 2018 · 5 comments
Open

[10.0] Mailgun's callback to /mailgun/notify returns 500 #157

vodwood opened this issue Sep 23, 2018 · 5 comments

Comments

@vodwood
Copy link

vodwood commented Sep 23, 2018

Errors keep showing up in Mailgun's logs: all callbacks to ~/mailgun/notify end up being undelivered.

Might I be missing a configuration step in Odoo?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@ilmir-k
Copy link

ilmir-k commented Sep 24, 2018

@vodwood first you need to check if you setup correctly the following:

  • the route from mailgun side
  • outgoing mail server
  • mailgun.apikey in Settings > System Parameters

@vodwood
Copy link
Author

vodwood commented Sep 24, 2018

@ilmir-k Thanks Ilmir!
All of the mentioned seems to be correct. There is no problem with deliverability to and from Odoo.
The problem is that the callbacks from Mailgun are not reaching the URL you have defined in your controller.

This is the error in Mailgun. As you can see, the callbacks keep retrying and softly failing until they fail permanently after several attempts.
{ "severity": "temporary", "tags": [], "storage": { "url": "https://se.api.mailgun.net/v3/domains/vostok.bike/messages/eyJwIjpmYWxzZSwiayI6ImNhMWE5NTUyLTMxNjQtNDdmZS04ZDQ5LTZhODc5ZGRhODdiYiIsInMiOiI1OTUxZWYwNDIzIiwiYyI6InRhbmtiIn0=", "key": "eyJwIjpmYWxzZSwiayI6ImNhMWE5NTUyLTMxNjQtNDdmZS04ZDQ5LTZhODc5ZGRhODdiYiIsInMiOiI1OTUxZWYwNDIzIiwiYyI6InRhbmtiIn0=" }, "delivery-status": { "attempt-no": 7, "description": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>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.</p>\n", "session-seconds": 1.447580099105835, "retry-seconds": 14400, "code": 500, "message": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>500 Internal Server Error</title>\n<h1>Internal Server Error</h1>\n<p>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.</p>\n" }, "recipient-domain": "shop.vostok.bike", "id": "m_yqAFXeQYCxsgdodVJCSw", "campaigns": [], "reason": "generic", "user-variables": {}, "flags": { "is-routed": false, "is-authenticated": true, "is-callback": true, "is-system-test": false, "is-test-mode": false }, "log-level": "warn", "timestamp": 1537798243.478487, "envelope": { "sender": "[email protected]", "transport": "http", "targets": "https://shop.vostok.bike/mailgun/notify" }, "message": { "headers": { "to": null, "message-id": "[email protected]", "from": "[email protected]", "subject": null }, "attachments": [], "size": 63864 }, "recipient": "https://shop.vostok.bike/mailgun/notify", "event": "failed" }

@g3492
Copy link

g3492 commented Oct 17, 2018

Hi! I have the same problem in Odoo 11, sending works ok, but callback to /mailgun/notify fails with:

<title>500 Internal Server Error</title>

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.

Server response: 500 <title>500 Internal Server Error</title>

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.

This is my first time trying to use mailgun addon. May be something changed from mailgun side.

@luistriana28
Copy link

luistriana28 commented Apr 15, 2019

Hi @yelizariev I'm having the same error. Odoo V10 Enterprise

Captura de Pantalla 2019-04-15 a la(s) 10 40 09

I haven't found the error, I'm trying to figure out if this line can be the possible error.

Regards

@luistriana28
Copy link

Here is another test from mailgun HTTP POST:

Captura de Pantalla 2019-04-15 a la(s) 14 31 34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants