-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update I*,J*, K* handlers to use new send #701
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #701 +/- ##
==========================================
+ Coverage 74.20% 74.32% +0.12%
==========================================
Files 98 98
Lines 12922 12870 -52
==========================================
- Hits 9589 9566 -23
+ Misses 2632 2599 -33
- Partials 701 705 +4 ☔ View full report in Codecov by Sentry. |
handlers/infobip/handler.go
Outdated
} | ||
|
||
groupID, err := jsonparser.GetInt(respBody, "messages", "[0]", "status", "groupId") | ||
if err != nil || (groupID != 1 && groupID != 3) { | ||
clog.Error(courier.ErrorResponseValueUnexpected("groupId", "1", "3")) | ||
return status, nil | ||
return courier.ErrFailedWithReason("", "unexpected groupId value") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should never have both a channel log and a terminal error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
courier.ErrFailedWithReason
is for passing back an external code that RP can link to a page with... this looks like it should ErrResponseUnexpected
handlers/infobip/handler.go
Outdated
} | ||
|
||
groupID, err := jsonparser.GetInt(respBody, "messages", "[0]", "status", "groupId") | ||
if err != nil || (groupID != 1 && groupID != 3) { | ||
clog.Error(courier.ErrorResponseValueUnexpected("groupId", "1", "3")) | ||
return status, nil | ||
return courier.ErrFailedWithReason("", "unexpected groupId value") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
courier.ErrFailedWithReason
is for passing back an external code that RP can link to a page with... this looks like it should ErrResponseUnexpected
handlers/justcall/handler.go
Outdated
} | ||
if respStatus != "success" { | ||
return status, nil | ||
return courier.ErrFailedWithReason("", "got non-success status") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
No description provided.