Hi Mus!
On Mon, Aug 11, 2014 at 3:35 PM, Mustafa Musaji <mmusaji(a)redhat.com> wrote:
Hi team
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 [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.
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.
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) ?
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].
Good point - setting up a document is on my list:
https://issues.jboss.org/browse/AGPUSH-623
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.
yes, fully agree. We have tracked that on UPS:
https://issues.jboss.org/browse/AGPUSH-883
and there is also an KC ticket that Stian created:
https://issues.jboss.org/browse/KEYCLOAK-531
-Matthias
So, when ever you have time to take a look at the above queries I'd be
grateful.
Regards
Mus
[1]
http://aerogear.org/docs/guides/GetStartedwithJavaSender/
[2]
http://pastebin.com/7U667RDU
--------------
Mustafa Musaji
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)
_______________________________________________
aerogear-dev mailing list
aerogear-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev
--
Matthias Wessendorf
blog:
http://matthiaswessendorf.wordpress.com/
sessions:
http://www.slideshare.net/mwessendorf
twitter:
http://twitter.com/mwessendorf