Multiple RBE error reports
Hi Ray --
Twice today, I've had a single RBE email rejected, saying it can't be posted. In each case, I've received 2-3 error messages, as if the message had been sent multiple times to the CAC. I'm not sure whether my gmail is trying to send multiple times (which seems unlikely, as I think it reached the system, even if only to result in an error message) or whether RBE is the issue.
#3 Updated by Raymond Hoh over 4 years ago
RBE uses SparkPost on NYCDH.
This problem can occur if the site was down when you were replying via email. When this happens, SparkPost will attempt to repost the item until it is successful.
When SparkPost sends a batch of events, it expects a 200 HTTP response from your endpoint as acknowledgement of receipt. Any other response is interpreted as failure, causing SparkPost to try again later. SparkPost will attempt re-delivery of a failed batch for 8 hours before discarding it.
Perhaps what is happening here is during the repost, the time it takes to post the bbPress reply is too long and SparkPost thinks this is indicative of a failure.
Has this happened a lot or just recently?
#5 Updated by Raymond Hoh over 4 years ago
I think what I mention is correct.
I need to refactor parts of the SparkPost integration to ensure our parsing / posting happens asynchronously.
Right now, everything happens synchronously so the posting delay is probably what is causing the problem. According to the logs, the RBE parsing / posting process from SparkPost takes about two seconds.
I'm not sure if two seconds is too long for SparkPost to consider the response a failure, but it might be.
I won't be able to get to this one right away since other parts of RBE require more attention. But, if you keep encountering this issue for new replies-by-email, let me know and I'll bump the priority on this.