Skip to content
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

Adds the Africa's Talking 'Expired' Status in Its Handler #387

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

jasonrogena
Copy link
Contributor

Add support for the 'Expired' status from Africa's Talking which seems
to be thrown but isn't handled. Courier currently throws the following
error when it encounters this status:

time="2021-11-10T10:29:10+03:00" level=info msg="request errored"
channel_uuid= elapsed_ms=0.109525 error="unknown status
'Expired', must be one of 'Success','Sent', 'Buffered','Rejected'
or 'Failed'" url=/c/at//status

Mark messages that have this status as failed as it doesn't appear
messages that have this status get delivered to users.

Signed-off-by: Jason Rogena [email protected]

Add support for the 'Expired' status from Africa's Talking which seems
to be thrown but isn't handled. Courier currently throws the following
error when it encounters this status:

time="2021-11-10T10:29:10+03:00" level=info msg="request errored"
channel_uuid=<UUID> elapsed_ms=0.109525 error="unknown status
'Expired', must be one of 'Success','Sent', 'Buffered','Rejected'
or 'Failed'" url=/c/at/<UUID>/status

Mark messages that have this status as failed as it doesn't appear
messages that have this status get delivered to users.

Signed-off-by: Jason Rogena <[email protected]>
Copy link
Member

@rowanseymour rowanseymour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're in code freeze until the end of the week, but looks good!

@codecov
Copy link

codecov bot commented Nov 10, 2021

Codecov Report

Merging #387 (2c33fc2) into main (ea9fedf) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #387   +/-   ##
=======================================
  Coverage   71.42%   71.42%           
=======================================
  Files          94       94           
  Lines        8276     8276           
=======================================
  Hits         5911     5911           
  Misses       1762     1762           
  Partials      603      603           
Impacted Files Coverage Δ
handlers/africastalking/africastalking.go 90.76% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ea9fedf...2c33fc2. Read the comment docs.

@rowanseymour rowanseymour merged commit 382ab18 into nyaruka:main Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants