<div dir="ltr">Hi Mus!<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 11, 2014 at 3:35 PM, Mustafa Musaji <span dir="ltr">&lt;<a href="mailto:mmusaji@redhat.com" target="_blank">mmusaji@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi team<br>
<br>
I can successfully send a UPS message from the console to my device. So I&#39;m trying to play around with the JavaSender. Following the docs here [1], I wrote my standalone client, the main bit you can see here [2], which I had to change a little as the API has changed since [1] was written I guess.<br>

<br>
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.<br></blockquote><div><br></div><div><br></div><div>
can you share the content of the HTTP POST, submitted by the console (e.g. extract the request, headers etc with ... Chrome Dev Tools or something like that) ?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
Aug 11, 2014 12:45:14 PM org.jboss.aerogear.unifiedpush.SenderClient submitPayload<br>
INFO: HTTP Response code from UnifiedPush Server: 401<br>
<br>
So why would it not be authorized? How can I find out what&#39;s happening?<br>
<br>
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].<br>
</blockquote><div><br></div><div>Good point - setting up a document is on my list:</div><div><a href="https://issues.jboss.org/browse/AGPUSH-623">https://issues.jboss.org/browse/AGPUSH-623</a><br></div><div><br></div><div>
 </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
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&#39;s a lot of them everytime to do something with the console and I&#39;m not sure it&#39;s necessary.<br>
</blockquote><div><br></div><div>yes, fully agree. We have tracked that on UPS:</div><div><a href="https://issues.jboss.org/browse/AGPUSH-883">https://issues.jboss.org/browse/AGPUSH-883</a><br></div><div><br></div><div>and there is also an KC ticket that Stian created:</div>
<div><a href="https://issues.jboss.org/browse/KEYCLOAK-531">https://issues.jboss.org/browse/KEYCLOAK-531</a><br></div><div><br></div><div>-Matthias</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
So, when ever you have time to take a look at the above queries I&#39;d be grateful.<br>
<br>
Regards<br>
Mus<br>
<br>
[1] <a href="http://aerogear.org/docs/guides/GetStartedwithJavaSender/" target="_blank">http://aerogear.org/docs/guides/GetStartedwithJavaSender/</a><br>
[2] <a href="http://pastebin.com/7U667RDU" target="_blank">http://pastebin.com/7U667RDU</a><br>
--------------<br>
Mustafa Musaji<br>
Software Maintenance Engineer<br>
Red Hat UK Ltd<br>
200 Fowler Avenue, Farnborough Business Park, Farnborough, Hants GU14 7JP<br>
<br>
Registered in England and Wales under Company Registration No. <a href="tel:03798903" value="+493798903">03798903</a><br>
Directors: Michael Cunningham (USA), Matt Parson (USA), Charles Peters (USA), Michael O&#39;Neill(Ireland)<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div>