jrconlin/pushgo

sending ack to server results in 500 error and broken pipe and unparsable data

Closed this issue · 2 comments

  1. run this:

    {"messageType": "hello", "uaid":"uaid", "channelIDs":["abc"]}
    {"messageType": "register", "channelID": "abc", "uaid":"uaid"}
    < {"messageType":"register","pushEndpoint":"http://localhost:8080/update/uaid.abc","status":200}
    {"messageType": "ack", "uaid":"uaid", "updates":[{"channelID": "abc", "version", 5}]}
    Exception in thread Thread-1:

actual:
2013/06/11 15:36:30 [4] worker: Server returned {%!s(int=200) map[messageType:register channelID:abc uaid:uaid status:%!s(int=200) pushEndpoint:http://localhost:8080/update/uaid.abc]}
2013/06/11 15:36:30 [3] worker: Sending REGIS response....
2013/06/11 15:36:39 [3] worker: Socket received {"messageType": "ack", "uaid":"uaid", "updates":[{"channelID": "abc", "version", 5}]}
2013/06/11 15:36:39 [1] worker: Unparsable data
2013/06/11 15:36:39 [3] server: Server Handling command {%!s(int=6) }

Hmm, that's a correct error.

The JSON you sent contains an error. It should be ..."version":5

Since the data is invalid, the pipe is broken.

my bad, closing