[GH-ISSUE #222] Result request interval in 2.7.1 #160

Closed
opened 2026-02-28 01:23:29 +03:00 by kerem · 6 comments
Owner

Originally created by @shtrih on GitHub (Nov 11, 2014).
Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/222

Are there any issues about separate requests with ?task=result? How often does SmsSync make this request? I set task check enabled with 1 minute frequency. Every minute I get requests to ?task=send but none to task result. I got just one such request and don't know which event caused it.

Originally created by @shtrih on GitHub (Nov 11, 2014). Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/222 Are there any issues about separate requests with `?task=result`? How often does SmsSync make this request? I set task check enabled with 1 minute frequency. Every minute I get requests to `?task=send` but none to task `result`. I got just one such request and don't know which event caused it.
kerem closed this issue 2026-02-28 01:23:29 +03:00
Author
Owner

@eyedol commented on GitHub (Nov 12, 2014):

That is independent of the task frequency. It get triggered when an SMS is actually delivered by the device. Did you enable SMS delivery report?

<!-- gh-comment-id:62661463 --> @eyedol commented on GitHub (Nov 12, 2014): That is independent of the task frequency. It get triggered when an SMS is actually delivered by the device. Did you enable SMS delivery report?
Author
Owner

@shtrih commented on GitHub (Nov 12, 2014):

Yes SMS delivery report is enabled. And SMS has been actually delivered but it stay in Pending with status Failed. Every minute (task check interval) SmsSync send this sms again. Displays toast messages one after the other:

  • sms_status_success
  • sms_not_delivered_unknown_error
  • sms_delivered
  • sms_not_delivered

Copies of this message appears in Sent list. The task result never be executed.

<!-- gh-comment-id:62676426 --> @shtrih commented on GitHub (Nov 12, 2014): Yes SMS delivery report is enabled. And SMS has been actually delivered but it stay in `Pending` with status `Failed`. Every minute (task check interval) SmsSync send this sms again. Displays toast messages one after the other: - sms_status_success - sms_not_delivered_unknown_error - sms_delivered - sms_not_delivered Copies of this message appears in `Sent` list. The task `result` never be executed.
Author
Owner

@eyedol commented on GitHub (Nov 12, 2014):

How are you testing for the task result stuff on the server?

<!-- gh-comment-id:62680421 --> @eyedol commented on GitHub (Nov 12, 2014): How are you testing for the task result stuff on the server?
Author
Owner

@shtrih commented on GitHub (Nov 12, 2014):

On server side in script I have following code (full code):

error_log(
    date_create('now', new DateTimeZone('Asia/Hong_Kong'))->format('[y-m-d H:i:s] ') . json_encode($_REQUEST)  . ' | ' . $response['code'] .', '. json_encode($response) . "\n"
    , 3
    , './tmp/' . basename(__FILE__) . '.log'
);

So I see all requests to the handler's URL in corresponding log file.

<!-- gh-comment-id:62687622 --> @shtrih commented on GitHub (Nov 12, 2014): On server side in script I have following code ([full code](https://gist.github.com/shtrih/22797dd16eac4d15702d#file-sms-sync-handler-php-L219-L224)): ``` error_log( date_create('now', new DateTimeZone('Asia/Hong_Kong'))->format('[y-m-d H:i:s] ') . json_encode($_REQUEST) . ' | ' . $response['code'] .', '. json_encode($response) . "\n" , 3 , './tmp/' . basename(__FILE__) . '.log' ); ``` So I see all requests to the handler's URL in corresponding log file.
Author
Owner

@eyedol commented on GitHub (Dec 1, 2014):

Fixed the broken result pull time frequency. This works with task checking frequencies.

@shtrih mind giving the latest develop code a test?

<!-- gh-comment-id:65057259 --> @eyedol commented on GitHub (Dec 1, 2014): Fixed the broken result pull time frequency. This works with task checking frequencies. @shtrih mind giving the latest develop code a test?
Author
Owner

@eyedol commented on GitHub (Apr 16, 2015):

@shtrih no response. I'm assuming it's fixed. Feel free to re-open this if you experience this in latest stable release on the Playstore or the pre-releases.

<!-- gh-comment-id:93653556 --> @eyedol commented on GitHub (Apr 16, 2015): @shtrih no response. I'm assuming it's fixed. Feel free to re-open this if you experience this in latest stable release on the Playstore or the pre-releases.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SMSSync#160
No description provided.