aman
(Aman Kandola)
June 29, 2020, 10:04pm
1
Courier’s logs say this is what I sent to the API:
{
"event": "FVFV2Q7C4W4GXVHV92PJJPNM3BCK",
"recipient": "redacted@example.com",
"data": {
"world": "Ruby!"
}
}
And I am seeing this error in the logs:
{
"reason": "No Valid Delivery Channel",
"type": "NO_CHANNELS"
}
nate
(Nate Munger)
June 29, 2020, 10:05pm
2
In this case no profile was added to the original API call, and Courier didn’t find a matching profile for the redacted@example.com
recipient ID. Changing the call to this should work:
{
"event": "FVFV2Q7C4W4GXVHV92PJJPNM3BCK",
"recipient": "redacted@example.com",
{
"email": "redacted@example.com"
},
"data": {
"world": "Ruby!"
}
}
1 Like
troy
(Troy Goode)
June 29, 2020, 10:13pm
3
We should improve our error messaging here. If no channels matched AND the profile is empty, we should instead start returning:
{
"reason": "No Profile",
"type": "NO_PROFILE"
}