Using REST Update Notification Hub to add APNS certs fails with 409

Hi - I'm trying to use the Update Notification Hub REST call (https://msdn.microsoft.com/en-us/library/azure/dn223260.aspx) to add a valid APNS cert to an existing hub. When I do this, the update fails with a response code of 409 - which is not mentioned
in the possible codes on that documentation page... Seems to be complaining that hub already exists.
When I use the Create Notification Hub REST Call (https://msdn.microsoft.com/en-us/library/azure/dn223269.aspx) and include the proper <ApnsCredential> element it succeeds.
I see no difference in the docs between the two calls.  The request body is described slightly differently. It appears to me that create and update are the same call? What causes a 409 when calling the Update method?
How am I supposed to update the push certs of an existing hub?
Thanks!

The answer is that the HTTP spec implies that for REST style calls for updating a resource at the same URI - you need to include the "If-Match" header set to '*'
see: https://msdn.microsoft.com/en-us/library/dd541480.aspx
and section 14.24 of RFC2616 ( http://www.rfc-editor.org/rfc/rfc2616.txt )
In my opinion this is a documentation bug - the Request Headers section of Update Hub ( https://msdn.microsoft.com/en-us/library/azure/dn223260.aspx ) should mention it requires the "If-Match" header.  It is required because without it
- this becomes a Create Hub call 

Similar Messages

  • Add-on 9000005 failed with exception; Event Type: 1

    Hi Experts,
    I am woking on a project which uses DI API and creates AP Invoice by reading an excel file.
    I used all the invoice in one sap transaction.
    I read excel line by line and create one AP Invoice per line. It works when excel is having less then 500 records. But if there are more then 500 records or more then 600 records, it give following error to me
    Add-on 9000005 failed with exception; Event Type: 1
    Can anyone help me in it?
    Thanks!!
    Ritu

    Hi,
    I'm sure there is a limit to the number of rows you can add to an Invoice but I think it's probably limited on memory rather than a fixed limit on the number of rows.  This might be an out of memory error that's causing the exception.  Have you tried putting a try/catch around your code to see what the exact details are of the exception?  Also, if you are filling in any text fields on the invoice (remarks), they are limited to 30K.
    David

  • Add-On [X] failed with exception; Event Type:16

    Hi,
      I'm currently trying to create a SAP B1 Add-On using C# (Framework 3.5/VS 2008).  I've done several VB.Net Add-Ons in the past but this is the first one I try to create one in C#.
      Using the SDK code examples, I've managed to create an Add-On that correctly connects to UI and DI (I can create a sub-menu, set event filters and add some usertables and userfields).  My sub-menu opens an XML based form in SAP B1.  The first time I click on the sub-menu, my form is correctly shown.  But immediately after, I get the following error in the message bar at the bottom :
      Add-On [X] failed with exception; Event Type:16, in which [X] is a number (like 90003), incrementing each time I stop the Add-On in Visual Studio and restart it.
      After this message occurs, I cannot display another instance of the window using the sub-menu.  In fact, it seems that all Add-On activity (button click, event trapping) is disabled or ineffective.  The Add-On still is running in the process tree, but no response.  Only the "X" is working on the created form to close it.
      I've run some tests on the code and I realized that this is happening on XML based forms (using the LoadBatchActions command to load the form) and the FormCreationParams class to create a simple form.  If I put the form creation line code in comments, my Add-On still runs (I can trap events on the sub-menu click) ; I can click multiple times on the menu without a problem  But as soon as I create a form, it stops responding.
    It also seems that as soon as I click on another menu to open a system form, the same error occurs. If I comment the form creation line code, again I can click as often as I want without getting this error message
      Can anyone help me on this one ?  I can post some code depending of what you may need to check this.
      Thanks !

    Sorry, I've just found the problem ; it was caused by an unhanded exception !
    Thanks !

  • Add-on 9000035 failed with exception; Event Type: 32

    In loadscreen function i have  load the XML form but it shows the error like
    "Add-on 9000035 failed with exception; Event Type: 32"
    But  i will connect to some other db means its working .
    Share your ideas for what is the problem to load the screen in particular DB
    Thanks,
    Helen. S

    Hi,
    You may check this: Add-on 9000002 failed with exception; Event Type: 32
    Thanks,
    Gordon

  • - 0 fatal error(s), 3 error(s)     ----------- Payload: Adobe Photoshop Lightroom 5 5.6.0.0 Adobe_Lightroom_x64.msi_5.6 -----------  ERROR: Key not valid for use in specified state.    ERROR: Install MSI payload failed with error: 1603 - Fatal error durin

    I keep getting this error code when trying to download         
    - 0 fatal error(s), 3 error(s) ----------- Payload: Adobe Photoshop Lightroom 5 5.6.0.0 Adobe_Lightroom_x64.msi_5.6 ----------- ERROR: Key not valid for use in specified state. ERROR: Install MSI payload failed with error: 1603 - Fatal error during installation. MSI Error message: Key not valid for use in specified state. ERROR: Third party payload installer Adobe_Lightroom_x64.msi failed with exit code: 1603

    Generally this error happens because of an encrypted folder or insufficient permissions on that folder: http://support.microsoft.com/kb/834484 (MS Explanation)
    Adobe has a page here: Error 1603: A fatal error occurred during installation

  • Add-on 9000034 failed with exception; in blocking expire date batch in GR

    Hi all ,
    I try to set mandotory in expire date field in batch setup of good receipt. My code is like this
    If (pVal.FormTypeEx = "41") Then
                oForm = SBO_Application.Forms.Item(FormUID)
                If (pVal.Before_Action = True) Then
                                Else
                    If pVal.ItemUID = "3" Then
                        mat = oForm.Items.Item("3").Specific
                        currow = pVal.Row
                        currCol = pVal.ColUID
                        If (pVal.ColUID = "10" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_KEY_DOWN And pVal.CharPressed = 9) Or (pVal.ItemUID = "1" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) Then
                            Try
                                Dim expdate As SAPbouiCOM.EditText
                                expdate = mat.Columns.Item(10).Cells.Item(currow).Specific
                                tgl = expdate.Value
                                Try
                                    If expdate = "" Then
                                        SBO_Application.MessageBox("Expired Date empty is not allowed")
                                    End If
                                    Exit Sub
                                Catch ex As Exception
                                    Debug.Print(ex.Message)
                                    Debug.Print(ex.ToString)
                                End Try
                            Catch ex As Exception
                                Debug.Print(ex.Message)
                                Debug.Print(ex.ToString)
                            End Try
                        End If
                    End If
                End If
            Else
                If pVal.ItemUID = "41" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE Then
                    Exit Sub
                End If
            End If
    When i try to close the batch setup and return to Good receipt form there is an error message
    Add-on 9000034 failed with exception; Event Type : 17
    Does any one know what the error message means ?
    Does I miss something ?
    Thanks in advance
    Regards
    Jia Shun

    Hello,
    for sorting batch codes by GR time sort from high to low after finding the codes from the date(s) you want (since the batch codes are created in numeric order the lower number will be the older batch codes)
    perhaps I did not understand...

  • Installation of Photoshop update 13.1.2 for creative cloud fails with error code U44M1P7 I need help

    I need help installing update 13.1.2 for Photoshop creative cloud, installation fails with error code: U44M1P7. Could someone please help?

    Sorry to bother you.
    I could find the answer after searching previous posts about this language problem.
    Had to change my language in AAM profile and then download PS CS6 again ( english version ).
    Then open the actual Photoshop and in preferences > interface you can besides the Dutch also option for English.
    restart application and Voila.
    Greetz, Jeroen

  • I have a problem updating my AcrobatX ERROR: Install MSI payload failed with error: 1603 - Alvorlig feil under installasjonen. MSI Error message: Ugyldigt drev: K:\  ERROR: Third party payload installer AcroPro.msi failed with exit code: 1603

    Acrobat X problem updating.
    ERROR: Install MSI payload failed with error: 1603 - Alvorlig feil under installasjonen.
    MSI Error message: Ugyldigt drev: K:\
    ERROR: Third party payload installer AcroPro.msi failed with exit code: 1603
    I have uninstalled my AcrobatX and now This message appear when I try to reinstall:
    ERROR: Install MSI payload failed with error: 1603 - Alvorlig feil under installasjonen.
    MSI Error message: Ugyldigt drev: K:\
    ERROR: Third party payload installer AcroPro.msi failed with exit code: 1603
    Is there anybody who know  how to solve it?

    Hi Patricia ,
    For error 2203 ,please refer to the following link.
    https://helpx.adobe.com/creative-suite/kb/error-2203-install-creative-suite.html
    For error 1603 ,refer to this link.
    https://helpx.adobe.com/creative-suite/kb/error-1603-install-cs3-cs4.html
    Let us know if this solves the issue .If required ,we"ll surely assist you further.
    Regards
    Sukrit Dhingra

  • I am using firefox version 26.0 when trying to add bookmaks, it fails with no error display

    <pre><nowiki>Application Basics
    Name: Firefox
    Version: 26.0
    User Agent: Mozilla/5.0 (Windows NT 5.1; rv:26.0) Gecko/20100101 Firefox/26.0
    Extensions
    Name: DivX Plus Web Player HTML5 <video>
    Version: 2.1.2.145
    Enabled: true
    ID: {23fcfd51-4958-4f00-80a3-ae97e717ed8b}
    Name: General Crawler
    Version: 2.6
    Enabled: false
    ID: [email protected]
    Name: Microsoft .NET Framework Assistant
    Version: 0.0.0
    Enabled: false
    ID: {20a82645-c095-46ed-80e3-08825760534b}
    Name: Move Media Player
    Version: 7
    Enabled: false
    ID: [email protected]
    Important Modified Preferences
    accessibility.blockautorefresh: true
    accessibility.typeaheadfind.flashBar: 0
    browser.cache.disk.capacity: 358400
    browser.cache.disk.smart_size.enabled: false
    browser.cache.disk.smart_size.first_run: false
    browser.cache.disk.smart_size.use_old_max: false
    browser.cache.disk.smart_size_cached_value: 358400
    browser.places.smartBookmarksVersion: 4
    browser.sessionstore.upgradeBackup.latestBuildID: 20131205075310
    browser.startup.homepage_override.buildID: 20131205075310
    browser.startup.homepage_override.mstone: 26.0
    browser.tabs.warnOnClose: false
    dom.mozApps.used: true
    dom.w3c_touch_events.expose: false
    extensions.lastAppVersion: 26.0
    font.internaluseonly.changed: false
    gfx.blacklist.direct2d: 3
    gfx.blacklist.layers.direct3d10: 3
    gfx.blacklist.layers.direct3d10-1: 3
    gfx.blacklist.layers.direct3d9: 3
    gfx.blacklist.layers.opengl: 3
    gfx.blacklist.stagefright: 3
    gfx.blacklist.suggested-driver-version: 6.1400.1000.5218
    gfx.blacklist.webgl.angle: 3
    gfx.blacklist.webgl.msaa: 3
    gfx.blacklist.webgl.opengl: 3
    network.cookie.prefsMigrated: true
    places.database.lastMaintenance: 1391414952
    places.history.expiration.transient_current_max_pages: 53248
    plugin.disable_full_page_plugin_for_types: application/pdf
    plugin.importedState: true
    print.printer_HP_LaserJet_1022.print_bgcolor: false
    print.printer_HP_LaserJet_1022.print_bgimages: false
    print.printer_HP_LaserJet_1022.print_colorspace:
    print.printer_HP_LaserJet_1022.print_command:
    print.printer_HP_LaserJet_1022.print_downloadfonts: false
    print.printer_HP_LaserJet_1022.print_duplex: 0
    print.printer_HP_LaserJet_1022.print_edge_bottom: 0
    print.printer_HP_LaserJet_1022.print_edge_left: 0
    print.printer_HP_LaserJet_1022.print_edge_right: 0
    print.printer_HP_LaserJet_1022.print_edge_top: 0
    print.printer_HP_LaserJet_1022.print_evenpages: true
    print.printer_HP_LaserJet_1022.print_footercenter:
    print.printer_HP_LaserJet_1022.print_footerleft: &PT
    print.printer_HP_LaserJet_1022.print_footerright: &D
    print.printer_HP_LaserJet_1022.print_headercenter:
    print.printer_HP_LaserJet_1022.print_headerleft: &T
    print.printer_HP_LaserJet_1022.print_headerright: &U
    print.printer_HP_LaserJet_1022.print_in_color: true
    print.printer_HP_LaserJet_1022.print_margin_bottom: 0.5
    print.printer_HP_LaserJet_1022.print_margin_left: 0.5
    print.printer_HP_LaserJet_1022.print_margin_right: 0.5
    print.printer_HP_LaserJet_1022.print_margin_top: 0.5
    print.printer_HP_LaserJet_1022.print_oddpages: true
    print.printer_HP_LaserJet_1022.print_orientation: 0
    print.printer_HP_LaserJet_1022.print_page_delay: 50
    print.printer_HP_LaserJet_1022.print_paper_data: 9
    print.printer_HP_LaserJet_1022.print_paper_height: 11.00
    print.printer_HP_LaserJet_1022.print_paper_name:
    print.printer_HP_LaserJet_1022.print_paper_size_type: 0
    print.printer_HP_LaserJet_1022.print_paper_size_unit: 1
    print.printer_HP_LaserJet_1022.print_paper_width: 8.50
    print.printer_HP_LaserJet_1022.print_plex_name:
    print.printer_HP_LaserJet_1022.print_resolution: 206154752
    print.printer_HP_LaserJet_1022.print_resolution_name:
    print.printer_HP_LaserJet_1022.print_reversed: false
    print.printer_HP_LaserJet_1022.print_scaling: 1.00
    print.printer_HP_LaserJet_1022.print_shrink_to_fit: true
    print.printer_HP_LaserJet_1022.print_to_file: false
    print.printer_HP_LaserJet_1022.print_unwriteable_margin_bottom: 0
    print.printer_HP_LaserJet_1022.print_unwriteable_margin_left: 0
    print.printer_HP_LaserJet_1022.print_unwriteable_margin_right: 0
    print.printer_HP_LaserJet_1022.print_unwriteable_margin_top: 0
    privacy.sanitize.migrateFx3Prefs: true
    security.disable_button.openCertManager: false
    security.disable_button.openDeviceManager: false
    security.OCSP.disable_button.managecrl: false
    security.warn_viewing_mixed: false
    storage.vacuum.last.index: 0
    storage.vacuum.last.places.sqlite: 1373890558
    Graphics
    Adapter Description: Intel(R) Q965/Q963 Express Chipset Family
    Adapter Drivers: igxprd32
    Adapter RAM: Unknown
    Device ID: 0x2992
    Direct2D Enabled: Blocked for your graphics driver version. Try updating your graphics driver to version 6.1400.1000.5218 or newer.
    DirectWrite Enabled: false (0.0.0.0)
    Driver Date: 1-13-2007
    Driver Version: 6.14.10.4764
    GPU #2 Active: false
    GPU Accelerated Windows: 0/2 Basic Blocked for your graphics driver version. Try updating your graphics driver to version 6.1400.1000.5218 or newer.
    Vendor ID: 0x8086
    WebGL Renderer: Blocked for your graphics driver version. Try updating your graphics driver to version 6.1400.1000.5218 or newer.
    windowLayerManagerRemote: false
    AzureCanvasBackend: skia
    AzureContentBackend: none
    AzureFallbackCanvasBackend: cairo
    AzureSkiaAccelerated: 0
    JavaScript
    Incremental GC: true
    Accessibility
    Activated: false
    Prevent Accessibility: 0
    Library Versions
    NSPR
    Expected minimum version: 4.10.2
    Version in use: 4.10.2
    NSS
    Expected minimum version: 3.15.3.1 Basic ECC
    Version in use: 3.15.3.1 Basic ECC
    NSSSMIME
    Expected minimum version: 3.15.3.1 Basic ECC
    Version in use: 3.15.3.1 Basic ECC
    NSSSSL
    Expected minimum version: 3.15.3.1 Basic ECC
    Version in use: 3.15.3.1 Basic ECC
    NSSUTIL
    Expected minimum version: 3.15.3.1
    Version in use: 3.15.3.1</nowiki></pre>

    Have you tried to
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]'''''?<br><br>
    Have you tried to use the '''STAR''' in the address bar? This would put that
    address into the '''Unsorted''' bookmark folder where you can move it
    if you want.<br><br>
    '''''LAST RESORT ! !'''''<br>
    '''''[https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems Reset Firefox]'''''

  • HT1338 Every time I try to use software update the window opens to scan then crashes with an error message.

    I am having problems with a BT Yahoo account where the home page opens but it will not let me open e-mail. When you click on mail it takes you to an upgrade page where there is a button for you to continue without upgrading. When you click on that it freezes. To compound this problem I cannot access the upgrade ststem on the Mac itself as it tells me there is an error. I am stuck on 10.3.9 as I purchased a 10.4 upgrade disk (official) ages ago but every time I ran it the computer crashed so I gave up on it. I still require classic on this machine on the odd occassion hence why I am stuck in the past. My iMac runs on 10.6.8 and the mail is accessable on that with no problem. HELP!!

    Start up from that Mac OS X 10.4 disc you have.  Insert disc in optical drive and start up with the C key held down.  On the first Installer screen, from the menu bar, under Utilities, select to run Disk Utility.
    In Disk Utility, select your startup volume (usually "Macintosh HD") in the sidebar and go to the First Aid tab.  Run Verify Disk.  If it reports a problem, that may be the reason for your long-term difficulties. You hard drive volume has data corruption. 
    You can try Repair Disk in Disk Utility.  However, it would be a very good idea to have a backup of the data on that disk, in case the attempt to repair makes the problem worse.

  • Add-on efforts fail with a message that it couldn't be done because Firefof could not modigy some file; forums are no help--I am not a computer wizard and they are greek to me. HELP!

    Sorry about the typos--Firefo'''x''' and modi'''f'''y. The message I always get is{X} add-on "could not be installed because Firefox cannot modify the needed file". Just Google that quote and you'll get many complaints about this on your Forum, none of which is at all understandable to me. I am a longtime Firefox user, with Mac OSX 10.6.8 Macpro. Your version is 5.0.1
    Please tell me how to get addons to be installed, in simple English.

    This can be a problem with the file(s) that store the extensions registry.
    Delete the files extensions.* (extensions.sqlite, extensions.ini, extensions.cache, extensions.rdf) and compatibility.ini in the Firefox [[Profiles|profile folder]] to reset the extensions registry.<br />
    New files will be created when required.
    See "Corrupt extension files":
    * http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the Tools button at the left side of the Search Bar (or click the "Find Updates" button in older Firefox versions) to do a compatibility check or see if there is an update.

  • HT4623 No ios software update notifications

    I use to receive ios software update notification badges with ios 6.  I no longer receive them with ios 7.  I never know software updates are available until someone tells me.  Is there a way to enable ios update notifications?  I have an iPhone 5 with Verizon.

    If you do not connect the device to power and wifi at the same time, then you might not. But if you had power and wifi at the same time, it should have recognized the notification. But if you go open Settings, it should prompt it. There is no setting in Notification Center to set for Software update.

  • How to delete audio files if using manual update

    hi,
    i have my iPod set for manual updating and i just realized that when i delete songs using iTunes the actual files stay on the iPod, wasting disc space. how can i delete those to free up more disc space (other than searching for each song and deleting it manually every time)? i will start using automatic updating evenutally but for now i am stuck with manual updating.
    thanks in advance...

    Under the "manually manage songs" setting, you should be able to click the little arrow next to your iPod in iTunes. Then, if you want to get rid of a song on your iPod, just select it, and hit backspace. I don't know why this wouldn't work, but it worked with my iPod.

  • WEB SERVICE PROXY GENERATED USING 11.1.1.5.0 WSDL FAILS WITH 11.1.1.6.0

    I have created a Web Service Proxy project in Jdev using BI Publisher 11.1.1.5.0 WSDL (ReportService). Generated ReportService_Service method uses following QName to get the port:
    namespaceURI = "http://xmlns.oracle.com/oxp/service/v2"
    localPart = "*v2/ReportService*"
    Reports are generated successfully via Web Services when using BI Publisher 11.1.1.5.0 but when I use BI Publisher 11.1.1.6.x, it fails with this exception:
    +'javax.el.ELException: javax.xml.ws.WebServiceException: {http://xmlns.oracle.com/oxp/service/v2}v2/ReportService is not a valid port. Valid ports are: {http://xmlns.oracle.com/oxp/service/v2}ReportService'+
    I noticed that if the Web Service Proxy project is created using BI Publisher 1.1.1.1.6.0 WSDL (ReportService), the generated ReportService_Service method uses following QName to get the port:
    namespaceURI = "http://xmlns.oracle.com/oxp/service/v2"
    localPart = "*ReportService*"
    We are supporting both 11.1.1.5.0 and 11.1.1.6.x, so is there a way to make it work with both.
    FYI, I have tried removing v2 but then it only works with 11.1.1.6.0 and fails with 11.1.1.5.0.
    +Caused By: javax.xml.ws.WebServiceException: {http://xmlns.oracle.com/oxp/service/v2}ReportService is not a valid port. Valid ports are: {http://xmlns.oracle.com/oxp/service/*v2}v2/*ReportService+

    Dear,
    found the solution (after trying last 1-2 days ...).
    I was already using java 1.7 update 7.
    I had to start java settings and to deselect Java 1.7.0_07.
    Instead I selected latest Java version from Apple: 1.6.0_35-b10-428.
    With these settings the installer finishes without crash.
    Kind regards
    Lorenz
    Edited by: Lorenz on Oct 4, 2012 1:47 PM

  • Updated to OS5, restoration failed with error -50.

    I updated the phone to OS5. Restoration failed with an error -50.
    I lost all my contacts, email setup, photos and other configuration.
    How do I get back my contacts?

    same thing happenned to me.
    IOS5 installed fine, but the restore failed.
    Eventually, I just logged in as if it was a new phone. iTunes remembered my apps, but all the data is still gone.
    And then it backed up on me.
    I'm on a winxp box, and I had gone into C:\Documents and Settings\<username>\Application Data\Apple Computer
    and I copied it to another location. So perhaps, if they get this fixed, I can recover the items from this old location.
    but, to be honest, I have lost a whole day messing with this, and I am very annoyed.

Maybe you are looking for

  • Native library working in Eclipse but not in command line ...

    I was working on a Nutch project combing CMeCab with the analyzer. It uses: System.load('CMeCab'); where the problem occured. I have the file libCMeCab.so in /usr/lib/ and it was working fine inside eclipse. But when I complie with ant (by the way I'

  • Should I buy a Macbook Pro or the New iMac 21'. I have the new iPad and an iPhone 4.

    I need to buy a new computer soon and obviously im buying a mac. im not sure which mac I should buy. Im undecided between the new iMac or the Macbook Pro 13. Please help.

  • My MacBook pro I got last week makes random clicking noises..

    I recently got a MacBook Pro for my 18th birthday present. I turned it on and it started making random clicking noises. It doesn't do it consistently but very randomly and at weird times. Nothing in particular triggers the noise but I'm not quite sur

  • Consignment issue order

    Hello Experts, I'm creating consignment fillup order in CRM 5.0 and doing delivery and picking in ECC 5.0. Now when I'm creating consignment issue order with refrence to fillup order I'm supposed to enter the batch number of product at the item level

  • Studio 11: bug in -O2 mode (64-bit) causes 'ube' error in Qt-4.1.0

    I think I have found a 64-bit optimizer bug in latest Studio 11 C++ compiler (CC -V: CC: Sun C++ 5.8 2005/10/13) when compiling Qt-4.1.0/X11 with -O2 and with -xarch=generic64 on Solaris 10/x86 (Opteron [Sun Fire V20z]). To reproduce the problem, get