[GH-ISSUE #356] App sends data of all failed messages in one request #257

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

Originally created by @raghavio on GitHub (Nov 18, 2015).
Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/356

Originally assigned to: @eyedol on GitHub.

Let's say I have one pending message. I try to publish it. My service does not respond with JSON so it goes back to pending again.
Now if I try to publish again it increments the data of all the failed messages with that request.
For example

secret=test&from=%2B919810956505&message=send-sms%20DL%20asdf&sent_timestamp=1447780978323&sent_to=%2B919810956505&message_id=b8710e7d-307b-4263-9c48-9d7e9e1349b4&device_id=&
secret=test&from=%2B919810956505&message=send-sms%20DL%20asdf&sent_timestamp=1447780978323&sent_to=%2B919810956505&message_id=b8710e7d-307b-4263-9c48-9d7e9e1349b4&device_id=&
secret=test&from=%2B919810956505&message=send-sms%20DL%20asdf&sent_timestamp=1447780978323&sent_to=%2B919810956505&message_id=1825f01b-b313-4db8-b6b2-66eed4123582&device_id=

This happens only when I choose URLEncoded or XML as data format for my request. JSON works fine and only sends data of that one message I selected.

Originally created by @raghavio on GitHub (Nov 18, 2015). Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/356 Originally assigned to: @eyedol on GitHub. Let's say I have one pending message. I try to publish it. My service does not respond with JSON so it goes back to pending again. Now if I try to publish again it increments the data of all the failed messages with that request. For example ``` secret=test&from=%2B919810956505&message=send-sms%20DL%20asdf&sent_timestamp=1447780978323&sent_to=%2B919810956505&message_id=b8710e7d-307b-4263-9c48-9d7e9e1349b4&device_id=& secret=test&from=%2B919810956505&message=send-sms%20DL%20asdf&sent_timestamp=1447780978323&sent_to=%2B919810956505&message_id=b8710e7d-307b-4263-9c48-9d7e9e1349b4&device_id=& secret=test&from=%2B919810956505&message=send-sms%20DL%20asdf&sent_timestamp=1447780978323&sent_to=%2B919810956505&message_id=1825f01b-b313-4db8-b6b2-66eed4123582&device_id= ``` This happens only when I choose <b>URLEncoded</b> or <b>XML</b> as data format for my request. JSON works fine and only sends data of that one message I selected.
kerem 2026-02-28 01:23:54 +03:00
Author
Owner

@eyedol commented on GitHub (Nov 18, 2015):

@RaghavPro Funky. Thanks for reporting. Will look into this.

<!-- gh-comment-id:157643445 --> @eyedol commented on GitHub (Nov 18, 2015): @RaghavPro Funky. Thanks for reporting. Will look into this.
Author
Owner

@raghavio commented on GitHub (Nov 18, 2015):

Another thing which is very weird.
I have two services. One is heroku and the other is http://requestb.in, which inspect http requests.
They both have different secret keys.

But, I see secret key of heroku service on requestb page along with requestb's secret key.

Request body:

secret=test&from=%2B919810956505&message=send-sms%20DL%20asdf&sent_timestamp=1447780978323&sent_to=%2B919810956505&message_id=5a3097df-cb3e-47e3-bfaa-0034a7fdbaff&device_id=&
secret=w%2Fx1fY%3F%2Fxc2S&from=%2B919810956505&message=send-sms%20DL%20asdf&sent_timestamp=1447780978323&sent_to=%2B919810956505&message_id=cfbb54c5-3ef6-4a90-8182-efadc225f94b&device_id=&
secret=w%2Fx1fY%3F%2Fxc2S&from=%2B919810956505&message=send-sms%20DL%20asdf&sent_timestamp=1447780978323&sent_to=%2B919810956505&message_id=5a3097df-cb3e-47e3-bfaa-0034a7fdbaff&device_id=

Here's a screenshot from requestb's page for better readability.
screen shot 2015-11-18 at 23 03 16

test is for requestb and the other one is for heroku.

It is sending details of one service with the url of another. Weird. This is all from one request.

<!-- gh-comment-id:157793164 --> @raghavio commented on GitHub (Nov 18, 2015): Another thing which is very weird. I have two services. One is heroku and the other is http://requestb.in, which inspect http requests. They both have different secret keys. But, I see secret key of heroku service on requestb page along with requestb's secret key. Request body: ``` secret=test&from=%2B919810956505&message=send-sms%20DL%20asdf&sent_timestamp=1447780978323&sent_to=%2B919810956505&message_id=cfbb54c5-3ef6-4a90-8182-efadc225f94b&device_id=& secret=test&from=%2B919810956505&message=send-sms%20DL%20asdf&sent_timestamp=1447780978323&sent_to=%2B919810956505&message_id=5a3097df-cb3e-47e3-bfaa-0034a7fdbaff&device_id=& secret=w%2Fx1fY%3F%2Fxc2S&from=%2B919810956505&message=send-sms%20DL%20asdf&sent_timestamp=1447780978323&sent_to=%2B919810956505&message_id=cfbb54c5-3ef6-4a90-8182-efadc225f94b&device_id=& secret=w%2Fx1fY%3F%2Fxc2S&from=%2B919810956505&message=send-sms%20DL%20asdf&sent_timestamp=1447780978323&sent_to=%2B919810956505&message_id=5a3097df-cb3e-47e3-bfaa-0034a7fdbaff&device_id= ``` Here's a screenshot from requestb's page for better readability. ![screen shot 2015-11-18 at 23 03 16](https://cloud.githubusercontent.com/assets/4872139/11248708/b39f1be2-8e48-11e5-948e-ba9ce45adee2.png) test is for requestb and the other one is for heroku. It is sending details of one service with the url of another. Weird. This is all from one request.
Author
Owner

@eyedol commented on GitHub (Nov 19, 2015):

@RaghavPro Quick question. We're you manually publishing the failed messages? You hit a button to upload the messages.

<!-- gh-comment-id:157972644 --> @eyedol commented on GitHub (Nov 19, 2015): @RaghavPro Quick question. We're you manually publishing the failed messages? You hit a button to upload the messages.
Author
Owner

@raghavio commented on GitHub (Nov 19, 2015):

Yes, manually published it.


From: Henry Addomailto:notifications@github.com
Sent: ‎19/‎11/‎2015 12:41
To: ushahidi/SMSSyncmailto:SMSSync@noreply.github.com
Cc: Raghav Sharmamailto:Raghav_ftw@hotmail.com
Subject: Re: [SMSSync] App sends data of all failed messages in one request (#356)

@RaghavPro Quick question. We're you manually publishing the failed messages? You hit a button to upload the messages.


Reply to this email directly or view it on GitHub:
https://github.com/ushahidi/SMSSync/issues/356#issuecomment-157972644

<!-- gh-comment-id:157976061 --> @raghavio commented on GitHub (Nov 19, 2015): Yes, manually published it. --- From: Henry Addomailto:notifications@github.com Sent: ‎19/‎11/‎2015 12:41 To: ushahidi/SMSSyncmailto:SMSSync@noreply.github.com Cc: Raghav Sharmamailto:Raghav_ftw@hotmail.com Subject: Re: [SMSSync] App sends data of all failed messages in one request (#356) @RaghavPro Quick question. We're you manually publishing the failed messages? You hit a button to upload the messages. --- Reply to this email directly or view it on GitHub: https://github.com/ushahidi/SMSSync/issues/356#issuecomment-157972644
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#257
No description provided.