These are chat archives for ushahidi/Community

20th
Nov 2015
Ushbot
@ushbot
Nov 20 2015 07:07
[Jason Mule, Ushahidi] @hollycorbett did you update dependencies?
Ushbot
@ushbot
Nov 20 2015 07:41
[Angela Oduor Lungati, Ushahidi] Let the co testing fun BEGIN! Nairobi based folks, join me and @Jess anytime today at the south to south lab on the ground floor of bishop Magua :)
[Angela Oduor Lungati, Ushahidi] File uploaded
Ushbot
@ushbot
Nov 20 2015 08:00
[Angela Kabari, Ushahidi] So I'm manning this channel now... Who else is in the house?
[Angela Oduor Lungati, Ushahidi] (allthethings)
[Angela Kabari, Ushahidi] Sorry I should have said "allegedly" as I'm still terrified of misleading a user!
Ushbot
@ushbot
Nov 20 2015 08:07
[Jason Mule, Ushahidi] I am available on hipchat :-)
[Angela Kabari, Ushahidi] Thanks @Jason! I shall come running at the first sign of trouble :-)
Ushbot
@ushbot
Nov 20 2015 09:11
[Angela Kabari, Ushahidi] And I can check out after an uneventful hour... though I did try to set up my own deployment and run into some issues. @AngelaOduor whom should I take this up with?
[Linda Kamau, Ushahidi] take it up with @Jason
Raghav Sharma
@RaghavPro
Nov 20 2015 09:15
Hey, @eyedol. You there? I still can't get messages in publish list. :/
Ushbot
@ushbot
Nov 20 2015 09:29
[Henry Addo, Ushahidi] If you're not on v3.0.4 I encourage you to upgrade to that. Fixed an issue related to moving messages to the publish list
Raghav Sharma
@RaghavPro
Nov 20 2015 10:59
I updated. It's still the same.
I'm getting a crash report. There's a nullpointerexception at org.addhen.smssync.presentation.view.ui.MessageFragment
Line number 475
Method: hideLoading
Ushbot
@ushbot
Nov 20 2015 12:35
[Henry Addo, Ushahidi] @RaghavPro Do you know what triggers the app to crash? When the message gets to the app?
Raghav Sharma
@RaghavPro
Nov 20 2015 12:52
When I publish all messages and that loading icon appears.
Ushbot
@ushbot
Nov 20 2015 12:58
[Henry Addo, Ushahidi] Funky
Raghav Sharma
@RaghavPro
Nov 20 2015 13:01
Would you mind testing my service url? So that I can be sure nothing is wrong with my response.
Ushbot
@ushbot
Nov 20 2015 13:35
[Henry Addo, Ushahidi] give me the URL
select JSON format and input anything in secret
Ushbot
@ushbot
Nov 20 2015 13:52
[Angela Oduor Lungati, Ushahidi] sitting next to someone sharing feedback on doorbell from .io
[Angela Oduor Lungati, Ushahidi] grbbing a screenshot
Raghav Sharma
@RaghavPro
Nov 20 2015 14:03
@eyedol I'm getting couple of requests from 153.208.x.x to /?task=result&secret=123456
Which is returning 405 because I haven't implemented it.
You sending this?
Ushbot
@ushbot
Nov 20 2015 14:04
[Henry Addo, Ushahidi] should be me
Raghav Sharma
@RaghavPro
Nov 20 2015 14:04
Am I supposed to implement that? I don't want delivery confirmation or anything.
Ushbot
@ushbot
Nov 20 2015 14:05
[Henry Addo, Ushahidi] you don't have to then
Raghav Sharma
@RaghavPro
Nov 20 2015 14:06
Aight. Did you find anything? I haven't seen any POST request yet.
Ushbot
@ushbot
Nov 20 2015 14:07

[Henry Addo, Ushahidi] I'm getting this

<title>500 Internal Server Error</title>

<h1>Internal Server Error</h1>

<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>

Raghav Sharma
@RaghavPro
Nov 20 2015 14:07
What's your request?
Ushbot
@ushbot
Nov 20 2015 14:08
[Henry Addo, Ushahidi] sent as URLEncoded
Raghav Sharma
@RaghavPro
Nov 20 2015 14:09
I accept JSON
Ushbot
@ushbot
Nov 20 2015 14:09
[Henry Addo, Ushahidi] give me a sec going to try to send it as json
Raghav Sharma
@RaghavPro
Nov 20 2015 14:31
Anything? You did sent a request once which returned 401.
Ushbot
@ushbot
Nov 20 2015 14:35
[Henry Addo, Ushahidi] the server is returning a 401
[Henry Addo, Ushahidi] which makes smssync not process the json response returned
[Henry Addo, Ushahidi] anyway you could return 200 or 201 ?
Raghav Sharma
@RaghavPro
Nov 20 2015 14:37
Um yeah
Give me a second.
Ushbot
@ushbot
Nov 20 2015 14:37
[Henry Addo, Ushahidi] if the key didn't match
[Henry Addo, Ushahidi] return 200
[Henry Addo, Ushahidi] and make the success false instead
Raghav Sharma
@RaghavPro
Nov 20 2015 14:39
success to false?
You said to make it true yesterday.
Ushbot
@ushbot
Nov 20 2015 14:41
[Henry Addo, Ushahidi] correct but I meant if you're processing the matching key to make sure it matches
[Henry Addo, Ushahidi] on both the app and the server you return true with no error message
[Henry Addo, Ushahidi] if it doesn't match return false with error message
Raghav Sharma
@RaghavPro
Nov 20 2015 14:42
Ye but if it doesn't match and success is false it should go in publish, right?
Ushbot
@ushbot
Nov 20 2015 14:42
[Henry Addo, Ushahidi] in this case you're returning an error message with success true
[Henry Addo, Ushahidi] no it shouldn't
[Henry Addo, Ushahidi] it should stay in publish
[Henry Addo, Ushahidi] if it matches and success is true
[Henry Addo, Ushahidi] it should go to publish
[Henry Addo, Ushahidi] and to add, regardless of the message
Raghav Sharma
@RaghavPro
Nov 20 2015 14:44
Ok, I've made success is True for now. Just want it to go in publish. I get what you're saying.
Ushbot
@ushbot
Nov 20 2015 14:44
[Henry Addo, Ushahidi] if the server returns 200 with success true in the paylood
[Henry Addo, Ushahidi] payload**
[Henry Addo, Ushahidi] the message should go into the publish list
Raghav Sharma
@RaghavPro
Nov 20 2015 14:44
Let's try. About to push.
Ok updated.

HTTP/1.1 200 OK
Connection: keep-alive
Server: gunicorn/19.3.0
Date: Fri, 20 Nov 2015 14:45:02 GMT
Content-Type: application/json
Content-Length: 95
Via: 1.1 vegur

{
"payload": {
"error": "Secret key didn't match for HEROKU.",
"success": true
}
}

This is what it returns now.
Ushbot
@ushbot
Nov 20 2015 14:48
[Henry Addo, Ushahidi] but it still stays in the publish list for me hmm
Raghav Sharma
@RaghavPro
Nov 20 2015 14:48
You mean incoming?
Ushbot
@ushbot
Nov 20 2015 14:48
[Henry Addo, Ushahidi] okay. time to go sleep
[Henry Addo, Ushahidi] yes incoming
Raghav Sharma
@RaghavPro
Nov 20 2015 14:49
What do you think it could be :S
Ushbot
@ushbot
Nov 20 2015 14:55

[Henry Addo, Ushahidi] hmm;

I'm getting this with the app's http client

protocol=http/1.1, code=405, message=METHOD NOT ALLOWED, url=http://cleansweep-sms.herokuapp.com/sms-bridge/heroku/

[Henry Addo, Ushahidi] the json response payload is not getting to the app for some reason
Raghav Sharma
@RaghavPro
Nov 20 2015 14:59
hmm
So is it the app or what?
because curl returns json.
Why is the app sending a GET request?
Ushbot
@ushbot
Nov 20 2015 15:02
[Henry Addo, Ushahidi] I have no idea
Raghav Sharma
@RaghavPro
Nov 20 2015 15:02
It returns 405 if it's a GET request. Because I haven't implemented it.
Ushbot
@ushbot
Nov 20 2015 15:03
[Henry Addo, Ushahidi] I probably have results api enable
Raghav Sharma
@RaghavPro
Nov 20 2015 15:03
Yeah must be because of that.
Ushbot
@ushbot
Nov 20 2015 15:03
[Henry Addo, Ushahidi] seems there is redirection going on somewhere
[Henry Addo, Ushahidi] which the android app isn't following, I don't know
[Henry Addo, Ushahidi] right now it's late for me, and my brain is fried
Raghav Sharma
@RaghavPro
Nov 20 2015 15:04
All right.
Can you look into it tomorrow?
Ushbot
@ushbot
Nov 20 2015 15:05
[Henry Addo, Ushahidi] you can try your implementation with v2.8.3; https://github.com/ushahidi/SMSSync/releases/tag/v2.8.3

[Link]

<p>ushahidi/SMSSync</p>

<p>SMSSync - SMS gateway for Android powered phones</p>

[Henry Addo, Ushahidi] if it's doesn't, then there is probably a bug somewhere with v3.0.4
[Henry Addo, Ushahidi] let me know how it goes.
[Henry Addo, Ushahidi] Yes I might be online tomorrow
[Henry Addo, Ushahidi] keep me posted
Raghav Sharma
@RaghavPro
Nov 20 2015 15:06
Ok, will try it.
Raghav Sharma
@RaghavPro
Nov 20 2015 16:06
OK OMG IT WORKED!