Gestion des erreurs SMTP
Je teste la prise de RDV dans sondage
sur une maquette personnelle "k3d laboite" (sans SMTP configuré).
Lors de la validation de mon rendez-vous, j'obtiens une Internal server error et le rendez-vous n'est pas confirmé.
D'après les logs du conteneur, le problème est bien lié à la tentative d'envoi de mail :
Exception while invoking method 'polls_answers.create' Error: connect ECONNREFUSED 192.168.0.1:465
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16)
=> awaited here:
at Function.Promise.await (/opt/bundle/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12)
at Object.Email.send (packages/email/email.js:250:18)
at sendEmailToCreator (imports/api/events/server/methods.js:59:9)
at MethodInvocation.run (imports/api/polls_answers/server/methods.js:77:7)
at ValidatedMethod._execute (packages/mdg:validated-method/validated-method.js:141:43)
at MethodInvocation.polls_answers.create (packages/mdg:validated-method/validated-method.js:62:23)
at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1902:12)
at getCurrentMethodInvocationResult (packages/ddp-server/livedata_server.js:772:38)
at packages/meteor.js:365:18
at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1389:31)
at packages/ddp-server/livedata_server.js:791:46
at new Promise (<anonymous>)
at Session.method (packages/ddp-server/livedata_server.js:739:23)
at packages/ddp-server/livedata_server.js:603:43