mail-addons icon indicating copy to clipboard operation
mail-addons copied to clipboard

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

Open vodwood opened this issue 6 years ago • 5 comments

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 avatar Sep 23 '18 18:09 vodwood

@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 avatar Sep 24 '18 08:09 ilmir-k

@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" }

vodwood avatar Sep 24 '18 14:09 vodwood

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

500 Internal Server Error

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 500 Internal Server Error

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.

g3492 avatar Oct 17 '18 21:10 g3492

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 avatar Apr 15 '19 15:04 luistriana28

Here is another test from mailgun HTTP POST:

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

luistriana28 avatar Apr 15 '19 19:04 luistriana28