[aerogear-dev] JavaSender questions and a few other bits
mmusaji at redhat.com
Mon Aug 11 09:35:18 EDT 2014
I can successfully send a UPS message from the console to my device. So I'm trying to play around with the JavaSender. Following the docs here , I wrote my standalone client, the main bit you can see here , which I had to change a little as the API has changed since  was written I guess.
Now, I use the same ApplicationID and masterSecret in the console and standalone client - however, with the standalone client I get a 401 response and the console works.
Aug 11, 2014 12:45:14 PM org.jboss.aerogear.unifiedpush.SenderClient submitPayload
INFO: HTTP Response code from UnifiedPush Server: 401
So why would it not be authorized? How can I find out what's happening?
Finally, this is a good point for me to ask perhaps how I can get some deeper level debug logging on the UPS to try and track down what might be happening in these sort of issues. I have TRACE level logging set up but all I see is FINE level logging such as [org.jboss.aerogear.unifiedpush.message.sender.GCMPushNotificationSender].
Also, the WARN and INFO logs from resteasy and keycloak respectively are kind of a lot in the server.log. These seem to be internal to UPS so not sure if we need to raise an issue with KC/UPS to get rid of these or change them over to DEBUG level. There's a lot of them everytime to do something with the console and I'm not sure it's necessary.
So, when ever you have time to take a look at the above queries I'd be grateful.
Software Maintenance Engineer
Red Hat UK Ltd
200 Fowler Avenue, Farnborough Business Park, Farnborough, Hants GU14 7JP
Registered in England and Wales under Company Registration No. 03798903
Directors: Michael Cunningham (USA), Matt Parson (USA), Charles Peters (USA), Michael O'Neill(Ireland)
More information about the aerogear-dev