Rally Software

 View Only
Expand all | Collapse all

can i use fetch module-'post' method in rally custom html app?

  • 1.  can i use fetch module-'post' method in rally custom html app?

    Posted Feb 13, 2019 02:39 PM

    hi all, This is related to CA Agile Central (Rally). I am running a html-javascript program via the app 'Custom HTML'. I am not using Rally SDK but plain html-js code. I am using 'fetch' module in javascript for REST API calls. It works fine for get requests. But for post request, i get error:

    {"CreateResult": {"_rallyAPIMajor": "2", "_rallyAPIMinor": "0", "Errors": ["Not authorized to perform action: Invalid key"], "Warnings": []}}

    The strange this is the same program code is working when i am running the whole thing as a stand alone HTML file i.e outside Rally i.e. from my local machine. Can someone please help?

    I have WSA permissions on the workspace i am trying this action on. The code I am using is -

    const resp = await fetch(<someURL>, {
    method: 'POST',
    body: <jsonbody>,
    headers:{
    'Content-Type': 'application/json',
    'zsessionid': <my api key>
    }
    });



  • 2.  Re: can i use fetch module-'post' method in rally custom html app?

    Broadcom Employee
    Posted Feb 13, 2019 06:31 PM

    Hi Sujoy,  we'll work this in the case you opened.



  • 3.  Re: can i use fetch module-'post' method in rally custom html app?
    Best Answer

    Broadcom Employee
    Posted Feb 14, 2019 02:56 PM

    Resolved the issue in this related community post: 

    Why am I now unable to use API keys to make updates in Rally with the API?