Push Notifications to APNS Fail 50% of the Time

Sending a notification to an iOS device fails half the time with this error:
   The Push Notification System returned an Internal Server Error
Here is my setup:
Free Trial version of Azure
Sandbox certificates uploaded to a Mobile Service/Notification Hub
App developed with PhoneGap and built using Adobe's PhoneGap Build service
Using the com.microsoft.azure-mobile-services Cordova plugin
I am able to use either the DEBUG page on the Azure site, Visual Studio 2013 (Server Explorer -> Azure), or the ServiceBusExplorer open source program to send test JSON messages to Apple. It works, half the time, and the other half of the time I
receive the error above.
Steps to reproduce:
Open Visual Studio --> Server Explorer --> Azure. It points to my trial account.
Context-click on my Notification Hub a pick "Diagnose"
Under Device Registrations, I delete any registrations I've previously accumulated. There are now no device registrations.
Delete and re-install the test app on the iPhone (iOS 8)
Launch the test app. A new registration appears in the notification hub. The type is "Native." (I've also had problems with "Template.")
Go to the Test Send tab; Recipient: Broadcast; Message Type: Apple (Default)
I am using the default, sample notification (but I get similar outcomes with other JSON messages):
{"aps":{"alert":"Notification Hub test notification"}}
Hit "Send"; It fails. Under "Message Result:," for my single registration I have this error message: "The Push Notification System returned an Internal Server Error"
Wait 90 seconds, hit Send again. The notification works, it appears on the phone, the message result is "The Notification was successfully sent to the Push Notification System"
Wait another 90 seconds, hit Send again. The notification fails
with the same Internal Server Error that it did the first time.
Wait another 90 seconds, hit Send again. It works perfectly just like it did on the second attempt.
Overall it is working about half the time. In the example above, it worked every-other time, but this is not always the case--it can succeed multiple times in a row or fail multiple times in a row. I'm not changing the JSON at all between
the above test messages. Even if I vary the JSON, I get the same outcome. I get similar outcomes regardless of whether I do the testing through Visual Studio (above), the Azure portal (the DEBUG tab), or through the ServiceBusExplorer program.
What is causing this? How do I troubleshoot this?

Hi David,
I don't have an answer for you, but I wanted to chime in because I am having problems as well. I get the same "The Push Notification System returned an Internal Server Error" message trying to send a test push via either the Debug tab in the manage.windowsazure.com
console or in Visual Studio.
I have been focused on troubleshooting this problem since yesterday (Saturday February 21) but I believe it has been happening quite a bit longer.
At one point I was able to get some notifications through after clearing all the registrations, but now it is failing again. I have had the same certificate since last April (2014) and it has worked fine, so I know the certificate setup is good.
More data points:
using the SimplePush PHP script from
raywenderlich.com with the same certificate, the notifications go through immediately.
Normally we send notifications from our Mobile Service using the Javascript backend, and it gets a "success" response from the Notification Hub even when it fails, e.g.
{"isSuccessful":true,"statusCode":201,"body":"","headers":{"transfer-encoding":"chunked","content-type":"application/xml; charset=utf-8","server":"Microsoft-HTTPAPI/2.0","date":"Sun,
22 Feb 2015 05:05:20 GMT"}}
We have another notification hub with our production certificate, and it seems to be working better.

Similar Messages

  • Help, do not work all the push notifications for iphone 4 (A1332) after the ios 7

    Help, do not work all the push notifications for iphone 4 (A1332) after the ios 7

    I have the exact same problem you have? I can occasionally getpushnotification, but only once a day fore facebook. For twitter, I get nothing and newer got. Other programs never got any notification att all.Push notification is on both under notification center and the respective programs.I have iOS 5.0.1 on iPhone 4S.

  • Parent talking to child fails some of the time?

    Hi All,
    Have others found that sending a value (stored in a variable) from a parent (main timeline) to a child (movie clip) fails some of the time but only when the movie is running as a .swf (it never fails when testing in authoring)?
    My main timeline's actionscript has:
    XYZ_ChildMC.variableA = false; //parent talks to child movie clip
    In the child MC script:
    import fl.video.*;
    var variableA;
    function completeHandler(e: fl.video.VideoEvent): void
         if (variableA == false)
                 myFLV.seek(0);
                 myFLV..play();
    This seems to fail about 5% of the time when running/rerunning the .swf in a browser.
    Anyone have a similar experience?
    Thanks

    never had that problem.  most likely you have a timing issue.
    use the trace function or textfield to determine if completeHandler is executing before variableA is assigned.

  • TS3899 Not receiving push notifications for exchange email account since the IOS 8 update

    I Am not receiving exchange email push notifications since the IOS 8 update for iPhone 5s

    Hey TH7279,
    Thanks for the question. What happens when you attempt to send mail? Do you receive an error message? If so, check out the following resource for helpful information on common error messages:
    Get help with Mail on iPhone, iPad, and iPod touch - Apple Support
    http://support.apple.com/en-us/ts3899
    Thanks,
    Matt M.

  • _DESCRegisterDockExtraClient failed Error All The Time

    Can someone please tell me why I keep getting this error in my console log so often:
    _DESCRegisterDockExtraClient failed
    My iMac stalls at startup when it does this so I immediately know for sure that I will see the error in the console log once the iMac has booted. It doesn't happen every time I startup. It seems like the iMac goes through "phases" where it will do this on every startup for a couple of days, then it doesn't do it at all for a week. I've checked the hardware and software with Disk Utility, TechTool Pro 5, checked all the RAM, reset PRAM, reset SMU - done everything in the book including starting up from the Leopard startup CD and running AHT. No problems reported.
    Thanks to anyone who can tell me what this means and why it happens. Below is a search for the times it has happened in the past 5 weeks:
    Sep 13 08:23:26 <my imac> Dock[88]: _DESCRegisterDockExtraClient failed 268435459
    Sep 14 15:13:28 <my imac> Dock[94]: _DESCRegisterDockExtraClient failed 268435459
    Sep 17 20:34:48 <my imac> Dock[87]: _DESCRegisterDockExtraClient failed 268435459
    Sep 19 08:44:53 <my imac> Dock[92]: _DESCRegisterDockExtraClient failed 268435459
    Sep 23 14:51:55 <my imac> Dock[89]: _DESCRegisterDockExtraClient failed 268435459
    Sep 26 15:19:38 <my imac> Dock[86]: _DESCRegisterDockExtraClient failed 268435459
    Sep 28 08:16:49 <my imac> Dock[88]: _DESCRegisterDockExtraClient failed 268435459
    Sep 30 15:09:45 <my imac> Dock[92]: _DESCRegisterDockExtraClient failed 268435459
    Oct 5 08:57:33 <my imac> Dock[91]: _DESCRegisterDockExtraClient failed 268435459
    Oct 18 20:38:55 <my imac> Dock[87]: _DESCRegisterDockExtraClient failed 268435459
    Oct 20 08:27:00 <my imac> Dock[93]: _DESCRegisterDockExtraClient failed 268435459
    Oct 22 20:43:39 <my imac> Dock[93]: _DESCRegisterDockExtraClient failed 268435459
    Oct 23 14:13:50 <my imac> Dock[88]: _DESCRegisterDockExtraClient failed 268435459
    Oct 23 20:37:21 <my imac> Dock[91]: _DESCRegisterDockExtraClient failed 268435459
    Oct 24 18:38:21 <my imac> Dock[91]: _DESCRegisterDockExtraClient failed 268435459

    HI Gerard,
    Since this doesn't happen everytime you start the Mac, if you can, go to System Preferences/Accounts - Login Items. Delete any login items listed and restart the Mac.
    And go to: MacintoshHD/Library/Startup Items. Delete any files there.
    Try starting up with only the necessary external hardware. Disconnect printers / scanners... etc. and see if that makes a difference.
    Try starting up in Mac OS X: Startup in Safe Mode
    Resolve startup issues and perform disk maintenance with Disk Utility and fsck
    Carolyn

  • [SOLVED] Netbeans - Run fails - most of the time

    Hello everybody,
    I have just today installed Netbeans Verion 7.0 and all plugins are up to date.
    I have a strage error with a simple "Hello World" program:
    The program builds always fine, but it runs just in about 1 of 5 tries.
    Here are some screenshots:
    Build Info
    Success
    Fail
    I also realized, that when I choose "Debug / Debug Main Project" this works all the time.
    Any suggestions?
    matse
    Last edited by matse (2011-06-11 20:51:09)

    just found a workaround here:
    http://forums.netbeans.org/ptopic28915.html
    disabling the built-in profiler: in project properties ->
    Profile, uncheck "Show profiling indicators during run".
    solved the problem.

  • I haven't used my iPod in a few months.  Gave it full charge, music showing on screen and in iTunes.  But when I push play, it says "Now Playing", but the time isn't moving forward and nothing is playing.  I have already reset it and that didn't help.

    I've had this iPod Classic for a couple of years, and only use it every so often, mostly when I travel.  Just bought a speaker so I can listen in the house.  Gave it a full charge.  The music is showing up on the screen, and it also shows up in iTunes on my computer.  When I try to play something, whether it's a song, artist, album, whatever, the screen shows the name of the song and displays "Now Playing".  The time stays on 0.00, however and doesn't move forward;  and no sound is coming out whether on the new docking speaker or with a headset.  I tried the reset procedure, but still no change.  Can anyone help me?  Thanks!!!

    A 4th gen iPod can not be upgraded to iOS 8. 7.0.2 is the high version it can run.

  • Macbook Air internet fails 50% of the time.

    I'm a first time mac owner and currently very dissatisfied. I've had my MBA for about 3 months now, its running 10.7.4 Lion and it was running fine for a long while. recently I have been having issues where I launch safari and the system hangs, the page either doesn't load or takes 20-30 minutes to load. It takes days for my email to sync/download. the system is nearly unsuable.
    What I have done to try and make it work:
    - bought a wifi repeater to extend signal range/strength
    - boosted both router and repeater with 14-20Db antenne
    - run dead run wired connection through my house and use ethernet USB adapter
    - On the computer, turned wifi on and off, The issues is persistant with wired connection too.
    - Turn off bluetooth and remove bluetooth devices
    - ensure connection in network manager, I have connection via both wifi and eithernet, both DHCP's are verified and they work perfectly over the internal network.
    I know the external network is not an issue, I have 3 Win7 machines, 4 android devices, an ipod touch, and 2 Ubuntu servers connected. Professonally I'm a network administrator , I know my house is wired correctly and recieving proper signal.
    Additionally will this problem be solved if I upgrade to Mountain Lion? I upgraded the system very early on. That is about the time the problems started. The wifi issues were bad enough to make me revert back to 10.7.4.
    I've been beating my head aginst a wall for 3 months. Really dissatisfied that I have a 1000 dollar system that only works 50% of the time.
    ~Casey

    Connect via Ethernet and turn Wi-Fi off. Boot into Recovery by holding down the key combination command-R at the startup chime. Release the keys when you see a gray screen with a spinning dial.
    From the OS X Utilities screen, select Get Help Online. A clean copy of Safari will launch. No plugins, such as Flash, will be available. While in Recovery, you'll have no access to your saved bookmarks or passwords, so make a note of those before you begin, if they're needed for the test.
    Test. After testing, reboot as usual and post the results.

  • Paste option fails 50% of the time using iSupport via FireFox

    At my job we use the iSupport online ticketing system via FireFox. However within the past year or so, the following has been happening:
    If I have a piece of text I’ve copied, (for example the word ‘test’), and then I paste it into either of the above fields while creating any kind of ticket (Incident, Problem, etc), half of the time it will paste in said text, however the other half it will simply jump to the next line, like someone pressed the Enter key instead of paste. For example, if I want to paste something 4 times, I would get: proper paste, line jump, proper paste, line jump. It’s immediately reproducible.
    Troubleshooting: This does not happen in Internet Explorer or Chrome. It appears related specifically to FireFox code because another browser I use, Waterfox, which is a 64 bit build of FireFox, suffers from the same problem. Starting FireFox in safe mode with no addons yield the same results. This also happens on multiple computers. We have been using iSupport for at least a year now and I believe that this wasn’t happening when we first started using it, so I’m not sure if a change in iSupport is the culprit, or FireFox is.
    Please let me know if you are familiar with this problem and what I might be able to do to get this fixed, as it’s insanely annoying while trying to get tickets completed. Thank you.
    Here is a screenshot of what our normal ticket window looks like, someone from Mozilla might be familiar with it: http://i.imgur.com/nxurtM5.png

    Tell your system techs to run mal-ware scans on '''Everything.'''
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • Why does rsync -Pauv fail to preserve the time stamp?

    I'm trying to backup files to a USB HDD using rsync.  I specify -a, which as I understand it should preserve all the file attributes including the time stamp, but the time stamp of all the files on the USB HDD is the time they were copied.
    What am I doing wrong?
    TIA,
    -Brad

    Shoot, I did not send that particular rsync to a log file.  I have logs of other file transfers, and could setup some tests.  Anything in particular I should look for?
    FYI, on a somewhat related note, I found out the hard way that using '*' after the last / in the path causes rsync to skip hidden folders and files in the specified folder.
    For example,
       rsync -Pauv /home/me/* /media/usbdrive/me
    will skip any hidden files or folders in /home/me
       rsync -Pauv /home/me/ /media/usbdrive/me
    will act on hidden files and folders in /home/me
    That may be a "duh" to a lot of users in this forum, but it was eye-opening for someone like me who has been brain-washed by Billy for the last 25 years.
    Last edited by BAJ716 (2011-12-01 03:51:09)

  • Cannot get push notification 3g/wifi turn on at the same time

    Dear all,
    our mail server is lotus notes traveler and iphone is iphone4 running iOS7.
    when turn on 3g and wifi at the same time, e-mail is'nt pushed.
    3g is vodafone and wifi is our company's network.
    if turning on either 3g or wifi , it works well.
    There are always these "Domain=NSURLErrorDomain" error , error code comes up with1001,1009,1044.
    Of course travelserver is runnning, I guess the problem is iPhone cannot resolve DNS, connect to server, and so on but I'm not sure.
    Does anyone ever encounter before ? Do you have any idea ?
    Apr  3 09:06:58 test-iPhone MobileMail[115] <Notice>: 0x14d3fd70|EAS|Error|[ASGetOptionsTask 0x14d9f060, conn 0x14d66c50, request 0x14d39580] connection died with error Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0x14df62e0 {NSErrorFailingURLStringKey=https://travelerserver/traveler/Microsoft-Server-ActiveSync, NSErrorFailingURLKey=https://travelerserver/traveler/Microsoft-Server-ActiveSync, NSLocalizedDescription=The request timed out., NSUnderlyingError=0x14f4a170 "The request timed out."}
    Apr  3 09:06:58 test-iPhone MobileMail[115] <Notice>: 0x14d3fd70|EAS|Error|ASGetOptionsTask failed: Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0x14df62e0 {NSErrorFailingURLStringKey=https://travelerserver/traveler/Microsoft-Server-ActiveSync, NSErrorFailingURLKey=https://travelerserver/traveler/Microsoft-Server-ActiveSync, NSLocalizedDescription=The request timed out., NSUnderlyingError=0x14f4a170 "The request timed out."}

    Hello,
    What you report has been noticed by many others, and when coordinated with others it gets even stranger -- many people, in different parts of the world, with different BB10 devices, on different carriers and OS levels, all experience this symptom all at the same time. It is very odd.
    Usually, it just lasts a few seconds or minutes. But, about 48 hours ago (a little less as I recall), there was an extended outage...about 4 hours by the count of some I know.
    BB is aware, but that's all we know at this time.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Login fails most of the time!

    Hi Guys,
    I'm having issues loggin in to skype in the morning at work. I'm using my MS account, with two-factor authentication enabled. When trying to login I'm typing my user/pass, then I'm being asked for my authentication code; after that, skype takes a really really long time to authenticate (30-40 seconds), it fails and I'm taken back to the account selection screen (where I need to specify whether I'm planning on using a MS/Skype account).
    If I retry this for 6-7 times, it will eventually succeed in loggin in.
    This has been happening for a while now.
    Any suggestions ?

    What wireless router are you using?
    What firmware revision is it running? Is it 2.4ghz or 5ghz?
    Wireless has become more and more used and hence the chance for interference has grown by leaps and bounds. Even in your own household there can be AV senders, cordless phones, baby monitors, front door bells and cameras.. all running wireless on 2.4ghz. To say nothing of the neighbours.
    So it can be software driver issues.. a hardware failure issue.. or just plain old noise issue.
    When the wireless does connect, hold down the option key and click the airport symbol in the top menu area.
    It will show you some info on the connection.. including noise and link speed.
    Or open terminal and type airport -I
    Here is what I get.
    macproie-5:~ Ray$ airport -I
         agrCtlRSSI: -46
         agrExtRSSI: 0
        agrCtlNoise: -82
        agrExtNoise: 0
              state: running
            op mode: station
         lastTxRate: 145
            maxRate: 144
    lastAssocStatus: 0
        802.11 auth: open
          link auth: wpa2-psk
              BSSID: fc:75:16:e9:69:b8
               SSID: TG782T
                MCS: 15
            channel: 6
    I suggest you manually try at least the main non-overlapping channels in the wireless router.. so set to channel 1, 6 and 11 to test in turn if any work better.

  • HT4859 my iphone fails to backup to icloud. eack time i try manually it fails after estimating the time.

    I have not been able to back up my iphone to icloud. Each time it fails. Do I need to reset the phone and try?
    Jonathan

    Error -3259 is a network timeout error, usually. This article might help:
    http://support.apple.com/kb/TS2799

  • [solved]WoL fails 'most of the time', sometimes

    Sorry for the cryptic topic name, but I didn't want to make it too long
    I've been setting up wake-on-lan on my desktop computer, with my server waking it up. I followed the wiki entry and everything worked. I didn't even need ethtool. When I SSH into my server and run
    sleep 1s ; wol -v -p 97 -i 192.168.1.3 00:07:E9:73:09:44
    and then suspend my computer (s3) it wakes up a minute later. I've also tried adding it to the crontab of the server and it works. But when there is a big gap between the suspending and the wake-up it fails. The gap seems to be roughly an hour or so. Yesterday evening I changed the crontab on the server to this, and shut off my computer.
    * 6,7 * * * wol -v -p 97 -i 192.168.1.3 00:07:E9:73:09:44 -w 10
    The computer woke up about 6:45.
    Google turned up a hit about a fedora user where it failed after an hour, but that was because the router went into sleep mode, but my server torrents all night.
    I tried with S1 suspend, but my comp didn't want to suspend with that.
    One evening when it didn't woke up I went to my server and started issuing manual wol's,  at roughly the 10th try I succeeded, no clue why.
    I haven't really figured out if the -w switch makes any difference, I didn't really understand the man page's description of it.
    EDIT: yay 400th post!
    Last edited by hatten (2010-02-05 19:57:33)

    It worked this evening after a 4h sleep with
    * 20 * * * wol -p 97 00:07:E9:73:09:44
    in my crontab. No idea what caused the problem, but it'll hopefully work now. I'll see if it works tomorrow.
    Nobody answered to my thread :'(

  • Sun MC Automated Install Script failing 50% of the time

    Are there a set of tips in general for the script; or perhaps tips for the contents of the boom.cfg file to help increase the percentage of successful installs?
    Thanks, [email protected]

    Hi Mike,
    In most of the SunMC autoinstall projects I've worked on, we ended up implementing 3 slightly different install/setup config files: one for 12-25k's, one for 3800-6900s, and one for "everything else". Then we put a bit of smarts in the main install script to decide which to use. The questions for each of those groups were different enough that it made sense to break them apart.
    Are you using the base es-inst/es-setup commands? es-imagetool and agent-update.bin? es-makeagent? Some notes here: http://forums.halcyoninc.com/showthread.php?t=389 . Send me an email if you need help getting things off the ground.
    Regards,
    [email protected]

Maybe you are looking for

  • Contract Release Value is not updated with Confirmation or Invoice value

    The release value for a contract in SRM EBP shows the value of purchase orders created using that contract.  It does not take into account confirmation and/or invoice values. For example I create a PO for 10 items at £100/each using Contract ABC.  Th

  • WebLogic Server 9.2 Windows - javax.servlet.ServletException: [HTTP:101250]

    Hi, I am using BEA WebLogic Server 9.2 When I deployed my [ear] apllication (Struts 1, Java 1.4, EJB2) I get this error: Message icon - Error     javax.servlet.ServletException: [HTTP:101250][weblogic.servlet.internal.WebAppServletContext@11c2137 - a

  • TS3999 Outlook and Icloud calendars : how to set up?

    After a prompt from my PC I just installed the Icloud syn on my PC and allowed it to sync my Outlook calendar and contacts. Instead of duplicating them as I thought they all have been sucked into Icloud. Totally unacceptable!! Outlook is my work tool

  • FMS not working

    My partner and I are working on a FMS application since a month, and everything was fine. We tested the code juste before lunch, and when we went back... Tada!!! The server isn't working anymore... We tried install uninstall, the date trick (change t

  • Block CO Fields on Time Dependent Tab

    Hi all, On t-code AS02 we would like to prevent someone from changing the Cost Center and Internal Order Fields once value has been applied against an asset.  I've looked at screen layout and SE93 the t-code maintenance function but I have not been a