-
Notifications
You must be signed in to change notification settings - Fork 492
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
Message Results API always returns an empty message_result array #463
Comments
Its not clear. Is this the wrong data sent to your API by SMSSync? or the wrong data return by the API (Ushahidi v2 or v3) ? |
SMSSync v3.0.5 The wrong data is sent back by SMSSync. Or to be more clear just an empty array. |
@rjmackay I have recently created a simple service to test this and run into exactly the same problem. Everything works up until delivery reports - creating messages, queuing, sending.. But despite the android app receiving the correct message uuids from the GET /sync?task=result endpoint (from logs triggered by android app):
..triggered by console..
.. it proceeds to POST an empty
Application settings: Settings >> General >> SMS Delivery Report (enabled) |
@dalezak @brandonrosage flagging this as well for you to look into |
SMSSync Version 3.1.1
Suppose these UUID's awaiting for Delivery report. But in Post Request From SMSSync to API
Please respond me back where i doing wrong in setting. In SMSSync SMS Develiery repost is Checked. |
Easy one to fix. Issue is its only sending pending messages back to the API (which by this step there shouldnt be any) and failed messages because its using Code should be something a long the lines of:
I'll open a PR if it'll get merged. This is untested at the moment will fork, compile and test unless you guys (@eyedol) can do in the next couple of hours? |
PR above fixes the issue, tested with my production app and everything has cleaned up and marked delivered. |
Expected behavior
When the Message Results API doses a post task results it should post the message_result array like in the example the documentation.
POST http://localhost/sms/index.php?task=result
Actual behavior
The message_results array always comes back empty.
Steps to reproduce the behavior
Per the documentation we are sending "message_uuids" through the GET task=result. It response to the API with something like this:
However, the POST task=results always sends back an empty array. Like this:
Any help would be greatly appreciated. We have tried everything we can think of and are out of ideas on why the delivery report does not seem be working.
The text was updated successfully, but these errors were encountered: