jrconlin/pushgo

sending a list into channelID during register results in broken socket

Closed this issue · 3 comments

here's my session:

python wsdump.py ws://localhost:8080/ws
> {"messageType": "hello", "channelIDs": ["reg_noshake_chan_1"], "uaid":"reg_noshake_uaid_1"}
< {"messageType":"hello","status":200,"uaid":"reg_noshake_uaid_1"}
> {"messageType": "register", "uaid":"uaid", "channelID":["edog"]}
> Exception in thread Thread-1:
Traceback (most recent call last):

Server

2013/06/11 17:20:10 [3] worker: Socket sending map[messageType:register uaid:uaid channelID:[edog]]
2013/06/11 17:20:10 [3] worker: Client Read buffer, map[messageType:register uaid:uaid channelID:[edog]] 
2013/06/11 17:20:10 [1] worker: interface conversion: interface is []interface {}, not string
2013/06/11 17:20:10 [3] server: Server Handling command {%!s(int=6) <nil>}

I'm unable to reproduce this. It looks like things are working for you (note the returned pushEndpoint), but I'm not seeing anything causing the socket to close immediately after.

I've tried on my local install and on an AWS dev install. Can you send me the server log as well?

I missed a line: I've updated the STR. It's been kind of a long day. sorry about the vague bugs

Added trapping for malformed javascript in 8744539 (yes, I know it's well formed, but according to the spec it's not and go is AMAZINGLY picky about that stuff.)