[aerogear-dev] Mysterious warning when sending push

Matthias Wessendorf matzew at apache.org
Thu Jan 26 04:52:29 EST 2017


Pending -> might be a UI glitch - not 100% sure

On Thu, Jan 26, 2017 at 9:52 AM, Jose Miguel Gallas Olmedo <
jgallaso at redhat.com> wrote:

> All right, I didn't have the mock server up, which makes me feel yet more
> confused. I have realised it today 'cause I got a "Failed" after sending a
> notification, however yesterday I got only "Pending".. why? It looks like
> it shows "Pending" when sending to multiple variants but when it is only
> one, the status is "Failed".
>
> On 25 January 2017 at 19:29, Matthias Wessendorf <mwessend at redhat.com>
> wrote:
>
>> the mock backend needs to have a response, that google's FCM lib (which
>> is used in UPS), needs to understand. Otherwise, well ... sure, no luck.
>>
>> In case you are using wiremock, please do something like:
>>
>> curl -X POST --data '{ "request": { "url": "/fcm/send", "method": "POST" }, "response": { "status": 200, "fixedDelayMilliseconds": 2000, "jsonBody": {"multicast_id": 108,"success": 1,"failure": 0,"canonical_ids": 0,"results": [{ "message_id": "1:08"}]}, "headers": {"Content-Type": "application/json"}}}' http://localhost:9090/__admin/mappings/new
>>
>> so that the loclahost:3000/fcm/send thing sends a meaningful response.
>>
>> -Matthias
>>
>>
>>
>> On Wed, Jan 25, 2017 at 5:38 PM, Jose Miguel Gallas Olmedo <
>> jgallaso at redhat.com> wrote:
>>
>>> No, it just sends "null". But that does not seem to be an issue for the
>>> first app :/
>>>
>>> On 25 January 2017 at 15:56, Matthias Wessendorf <mwessend at redhat.com>
>>> wrote:
>>>
>>>> and the tool that intercepts the requests also sends back some meaning
>>>> full reponse ?
>>>>
>>>> like described here:
>>>> https://firebase.google.com/docs/cloud-messaging/send-messag
>>>> e#http_response
>>>>
>>>>
>>>>
>>>> On Wed, Jan 25, 2017 at 3:49 PM, Jose Miguel Gallas Olmedo <
>>>> jgallaso at redhat.com> wrote:
>>>>
>>>>> Yes, the proxy is up and the -Dcustom.aerogear.fcm.push.host is set,
>>>>> the notifications are actually being sent.
>>>>>
>>>>> On 25 January 2017 at 15:44, Matthias Wessendorf <mwessend at redhat.com>
>>>>> wrote:
>>>>>
>>>>>> endpoints for thje /fcm/send mock are setup ?
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Jan 25, 2017 at 2:07 PM, Jose Miguel Gallas Olmedo <
>>>>>> jgallaso at redhat.com> wrote:
>>>>>>
>>>>>>>
>>>>>>> ---------- Forwarded message ----------
>>>>>>> From: Jose Miguel Gallas Olmedo <jgallaso at redhat.com>
>>>>>>> Date: 25 January 2017 at 13:00
>>>>>>> Subject: Mysterious warning when sending push
>>>>>>> To: AeroGear Developer Mailing List <aerogear-dev at lists.jboss.org>
>>>>>>>
>>>>>>>
>>>>>>> Hi all,
>>>>>>>
>>>>>>> I have some phenomenon here. I have created 4 variants with 100 fake
>>>>>>> tokens and sending 1 push through the mock FCM server. What I got is 400
>>>>>>> (401 to be exact) receivers so it seems to work OK.
>>>>>>>
>>>>>>> These are the 4 variants (the order is important):
>>>>>>>
>>>>>>>
>>>>>>> However ONLY on 2nd to 4nd variant I got this warning:
>>>>>>>
>>>>>>>>>>>>>>
>>>>>>> The first variant in the list is not getting the error. I created
>>>>>>> them in order (0 - 3) so this does not matter because the 0 (second in the
>>>>>>> list) is receiving the warning but the 1 (first in the list) is not.
>>>>>>>
>>>>>>> ​Look what happens if I delete the first variant in the list and
>>>>>>> send another notification:
>>>>>>>
>>>>>>>>>>>>>> ​(Now the first in the list is variant 0, the former 2nd in the list)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ​This is no longer receiving the warning!​
>>>>>>>>>>>>>>
>>>>>>> Here is the log from the console:
>>>>>>> https://gist.github.com/josemigallas/69db6619a46bafafc9ae028
>>>>>>> a29b343f7
>>>>>>>>>>>>>>>>>>>>> So what do you think? Bug? It does not seem to be related with the
>>>>>>> fact that I am using the FCM proxy... or does it? Maybe I'm missing
>>>>>>> something obvious.
>>>>>>>
>>>>>>> Cheers,
>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>> *Jose Miguel Gallas Olmedo*
>>>>>>> Associate QE at Mobile Team, *Red Hat*
>>>>>>> <https://www.redhat.com/en/technologies/mobile/application-platform>
>>>>>>> +34 618 488 633 <+34%20618%2048%2086%2033>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Jose Miguel Gallas Olmedo*
>>>>>>> Associate QE at Mobile Team, *Red Hat*
>>>>>>> <https://www.redhat.com/en/technologies/mobile/application-platform>
>>>>>>> +34 618 488 633 <+34%20618%2048%2086%2033>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Project lead AeroGear.org
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Jose Miguel Gallas Olmedo*
>>>>> Associate QE at Mobile Team, *Red Hat*
>>>>> <https://www.redhat.com/en/technologies/mobile/application-platform>
>>>>> +34 618 488 633 <+34%20618%2048%2086%2033>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Project lead AeroGear.org
>>>>
>>>
>>>
>>>
>>> --
>>> *Jose Miguel Gallas Olmedo*
>>> Associate QE at Mobile Team, *Red Hat*
>>> <https://www.redhat.com/en/technologies/mobile/application-platform>
>>> +34 618 488 633 <+34%20618%2048%2086%2033>
>>>
>>
>>
>>
>> --
>> Project lead AeroGear.org
>>
>
>
>
> --
> *Jose Miguel Gallas Olmedo*
> Associate QE at Mobile Team, *Red Hat*
> <https://www.redhat.com/en/technologies/mobile/application-platform>
> +34 618 488 633 <+34%20618%2048%2086%2033>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
twitter: http://twitter.com/mwessendorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20170126/7c3f7acd/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mys-1.png
Type: image/png
Size: 48252 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/aerogear-dev/attachments/20170126/7c3f7acd/attachment-0004.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mys-3.png
Type: image/png
Size: 30577 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/aerogear-dev/attachments/20170126/7c3f7acd/attachment-0005.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mys-4.png
Type: image/png
Size: 44521 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/aerogear-dev/attachments/20170126/7c3f7acd/attachment-0006.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mys-2.png
Type: image/png
Size: 38120 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/aerogear-dev/attachments/20170126/7c3f7acd/attachment-0007.png 


More information about the aerogear-dev mailing list