mail-addons
mail-addons copied to clipboard
[10.0] Mailgun's callback to /mailgun/notify returns 500
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.
@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
@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" }
Hi! I have the same problem in Odoo 11, sending works ok, but callback to /mailgun/notify fails with:
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: 500Internal 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.
Hi @yelizariev I'm having the same error. Odoo V10 Enterprise
I haven't found the error, I'm trying to figure out if this line can be the possible error.
Regards
Here is another test from mailgun HTTP POST: