These are chat archives for ushahidi/Community

4th
Feb 2019
Ushbot
@ushbot
Feb 04 04:15
[Annaliza Mayor] Hi David, I am currently using v3.7 and everything is working as expected and just recently I had problem with my Datasource Twilio. Here is the error
[Annaliza Mayor] {
"errors": [
{
"status": 0,
"title": "Address in mailbox given [] does not comply with RFC 2822, 3.6.2.",
"message": "Address in mailbox given [] does not comply with RFC 2822, 3.6.2.",
"class": "Swift_RfcComplianceException",
"file": "/home6/impacuc0/public_html/platform/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php",
"line": 352,
"trace": [
{
"file": "/home6/impacuc0/public_html/platform/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php",
"line": 264,
"function": "_assertValidAddress",
"class": "Swift_Mime_Headers_MailboxHeader",
"type": "->",
"args": [
""
]
},
{
"file": "/home6/impacuc0/public_html/platform/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php",
"line": 108,
"function": "normalizeMailboxes",
"class": "Swift_Mime_Headers_MailboxHeader",
"type": "->",
"args": [
{
"": null
}
]
},
{
"file": "/home6/impacuc0/public_html/platform/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php",
"line": 65,
"function": "setNameAddresses",
"class": "Swift_Mime_Headers_MailboxHeader",
"type": "->",
"args": [
{
"": null
}
]
},
{
"file": "/home6/impacuc0/public_html/platform/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleHeaderFactory.php",
"line": 60,
"function": "setFieldBodyModel",
"class": "Swift_Mime_Headers_MailboxHeader",
"type": "->",
"args": [
{
"": null
}
]
},
{
"file": "/home6/impacuc0/public_html/platform/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleHeaderSet.php",
"line": 70,
"function": "createMailboxHeader",
"class": "Swift_Mime_SimpleHeaderFactory",
"type": "->",
"args": [
"To",
{
"": null
}
]
},
{
"file": "/home6/impacuc0/public_html/platform/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMessage.php",
"line": 324,
"function": "addMailboxHeader",
"class": "Swift_Mime_SimpleHeaderSet",
"type": "->",
"args": [
"To",
{
"": null
}
]
},
{
"file": "/home6/impacuc0/public_html/platform/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMessage.php",
"line": 301,
"function": "setTo",
"class": "Swift_Mime_SimpleMessage",
"type": "->",
"args": [
{
"": null
}
]
},
[Annaliza Mayor] What is the problem with the platform? Do I need to upgrade to higher version?
[Annaliza Mayor] Thank you
Ushbot
@ushbot
Feb 04 10:13
[David Losada, Ushahidi] Hi Annaliza, that error trace doesn’t seem to have anything to do with twilio. Did you get that from the logs?
[Annaliza Mayor] Yes
[Annaliza Mayor] Hi David, I got the logs error from Twilio logs
[Annaliza Mayor] I am not sure what is the problem with the platform
Ushbot
@ushbot
Feb 04 10:20
[Annaliza Mayor] https://snag.gy/cq3mon.jpg
Ushbot
@ushbot
Feb 04 11:06
[David Losada, Ushahidi] mm interesting, thanks! Did you paste here the complete body that twilio provided you? There seems to be some part of it left out at the bottom
[Annaliza Mayor] wait
[Annaliza Mayor] {
"errors": [
{
"status": 0,
"title": "Address in mailbox given [] does not comply with RFC 2822, 3.6.2.",
"message": "Address in mailbox given [] does not comply with RFC 2822, 3.6.2.",
"class": "Swift_RfcComplianceException",
"file": "/home6/impacuc0/public_html/platform/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php",
"line": 352,
"trace": [
{
"file": "/home6/impacuc0/public_html/platform/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php",
"line": 264,
"function": "_assertValidAddress",
"class": "Swift_Mime_Headers_MailboxHeader",
"type": "->",
"args": [
""
]
},
{
"file": "/home6/impacuc0/public_html/platform/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php",
"line": 108,
"function": "normalizeMailboxes",
"class": "Swift_Mime_Headers_MailboxHeader",
"type": "->",
"args": [
{
"": null
}
]
},
{
"file": "/home6/impacuc0/public_html/platform/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php",
"line": 65,
"function": "setNameAddresses",
"class": "Swift_Mime_Headers_MailboxHeader",
"type": "->",
"args": [
{
"": null
}
]
},
{
"file": "/home6/impacuc0/public_html/platform/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleHeaderFactory.php",
"line": 60,
"function": "setFieldBodyModel",
"class": "Swift_Mime_Headers_MailboxHeader",
"type": "->",
"args": [
{
"": null
}
]
},
{
"file": "/home6/impacuc0/public_html/platform/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleHeaderSet.php",
"line": 70,
"function": "createMailboxHeader",
"class": "Swift_Mime_SimpleHeaderFactory",
"type": "->",
"args": [
"To",
{
"": null
}
]
},
{
"file": "/home6/impacuc0/public_html/platform/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMessage.php",
"line": 324,
"function": "addMailboxHeader",
"class": "Swift_Mime_SimpleHeaderSet",
"type": "->",
"args": [
"To",
{
"": null
}
]
},
{
"file": "/home6/impacuc0/public_html/platform/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMessage.php",
"line": 301,
"function": "setTo",
"class": "Swift_Mime_SimpleMessage",
"type": "->",
"args": [
{
"": null
}
]
},
[Annaliza Mayor] That is the complete BODY
[David Losada, Ushahidi] yea they cut it out.. ok
[David Losada, Ushahidi] do you have notifications set up in this deployment? as in people getting notified of posts as they come in?
[Annaliza Mayor] Yes
[David Losada, Ushahidi] just something out of intuition, but it may be good to check that the email addresses for the users being notified are all correct
Ushbot
@ushbot
Feb 04 11:20
[Annaliza Mayor] I checked the email of the user that should received the SMS auto response message set in the platform. The email address complies definitely RFC.
[Annaliza Mayor] Exception in line 261 of /var/www/html/vendor/Packages/Libraries/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php: Address in mailbox given [] does not comply with RFC 2822, 3.6.2.
[Annaliza Mayor] private function _assertValidAddress($address)
{
if (!preg_match('/^'.$this->getGrammar()->getDefinition('addr-spec').'$/D',
$address)) {
throw new Swift_RfcComplianceException(
'Address in mailbox given ['.$address.
'] does not comply with RFC 2822, 3.6.2.'
);
}
}
Ushbot
@ushbot
Feb 04 11:25
[David Losada, Ushahidi] it just seems to be empty… maybe a dangling reference? any users deleted lately?
[Annaliza Mayor] I tried commenting out this line throw new Swift_RfcComplianceException(
'Address in mailbox given [' . $address .
'] does not comply with RFC 2822, 3.6.2.'
);
[Annaliza Mayor] https://snag.gy/i0MqOQ.jpg
[Annaliza Mayor] I think I have deleted users