i guess i'm gonna have to add one more point where it asks if it's not already authed for this problem, when i looked at my code i realised it wasn't enforcing any policy on event upload!
and then it isn't authing.
and i'm getting some weird socket error too, about the message not being valid UTF-8 when it receives the auth challenge