HTTP POST Request being called from both service worker and javascript.

450 views
Skip to first unread message

Premkumar Rajakumar R

unread,
Dec 28, 2015, 8:43:38 PM12/28/15
to service-worker-discuss
Hi Guys,

 I'm trying to make a dynamic push event using ajax jquery. While making the POST request with the content-type, authorization and registration_id's, the request is being made from both the service worker and from the application too.As a result of it i'm getting two response status code as 400 and 405.I've attached the screenshot of the network pane in the dev tools.Please look into it and provide me a solution. 
Push_network.JPG

Matt Falkenhagen

unread,
Jan 12, 2016, 11:05:12 PM1/12/16
to Premkumar Rajakumar R, service-worker-discuss
Sorry for the late reply. It's truncated in the screenshot, but I suspect the 400 you see is "(Service Worker Fallback Required)", which is an internal message that is not meant to be displayed in DevTools. That message is removed in Chrome 49+: https://code.google.com/p/chromium/issues/detail?id=477685

2015-12-29 10:43 GMT+09:00 Premkumar Rajakumar R <premkumar...@photoninfotech.net>:
Hi Guys,

 I'm trying to make a dynamic push event using ajax jquery. While making the POST request with the content-type, authorization and registration_id's, the request is being made from both the service worker and from the application too.As a result of it i'm getting two response status code as 400 and 405.I've attached the screenshot of the network pane in the dev tools.Please look into it and provide me a solution. 

Confidentiality Notice: The above information contained in this email is intended for the confidential use of the above-named recipient(s). If a reader of this message is not the intended recipient or person responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error, and that any review, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this in error, please notify the sender immediately and destroy this message.**

--
You received this message because you are subscribed to the Google Groups "service-worker-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to service-worker-di...@chromium.org.
To post to this group, send email to service-wor...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/service-worker-discuss/809bb4d6-afc5-4135-abd6-d70dd8e0746d%40chromium.org.

Reply all
Reply to author
Forward
0 new messages