Release Automation

Expand all | Collapse all

REST API Operation /release-status returns  Error : Content type 'application/octet-stream' not supported

  • 1.  REST API Operation /release-status returns  Error : Content type 'application/octet-stream' not supported

    Posted Sep 11, 2017 02:59 PM

    POST http://localhost:8088/datamanagement/a/api/v2/release-status? API returns Error value.

     

    Action completed Successfully but it is not returning correct result.

     

    Server: Apache-Coyote/1.1

    Cache-Control: no-cache

    Pragma: no-cache

    Expires: Thu, 01 Jan 1970 00:00:00 GMT

    Set-Cookie: JSESSIONID=C2E8431324FCFC55FD4848090620AC70; Path=/datamanagement/; HttpOnly

    Set-Cookie: Session-ID=C2E8431324FCFC55FD4848090620AC70; Path=/

    Set-Cookie: Accept-Language=en; Path=/

    Set-Cookie: Accept-Language-ISO=en; Path=/

    Content-Type: application/json

    Transfer-Encoding: chunked

    Date: Mon, 11 Sep 2017 18:45:34 GMT

    {"result":false,"description":"Content type 'application/octet-stream' not supported"

     

     

    Where as same REST API call from POSTMAN app is working properly.

     

     

     

    I think I am missing something in ACTION configuration looking for help.



  • 2.  Re: REST API Operation /release-status returns  Error : Content type 'application/octet-stream' not supported
    Best Answer

    Broadcom Employee
    Posted Sep 11, 2017 09:15 PM

    Hi Mohanraj-san,

     

    It seems your response doesn't have Content-Type properly, so please try to set 'Content-Type: application/json' to [Http Headers] and set true to [Include HTTP Headers In Response].

     

    This is my sample setting.

     

     

    Response file is

    Server: Apache-Coyote/1.1

    Cache-Control: no-cache

    Pragma: no-cache

    Expires: Thu, 01 Jan 1970 00:00:00 GMT

    Set-Cookie: JSESSIONID=C9F814374CF1E76209A4C311F6479436; Path=/datamanagement/; HttpOnly

    Set-Cookie: Session-ID=C9F814374CF1E76209A4C311F6479436; Path=/

    Set-Cookie: Accept-Language=en; Path=/

    Set-Cookie: Accept-Language-ISO=en; Path=/

    Content-Type: application/json

    Transfer-Encoding: chunked

    Date: Tue, 12 Sep 2017 01:09:50 GMT

    {"id":"4","result":true,"description":"100% Succeeded","stage":"Post-Deployment","stageState":"Succeeded","releaseStatus":"Succeeded"}

     

     

    I hope my sample helps you.

    Cheers

    Yas



  • 3.  Re: REST API Operation /release-status returns  Error : Content type 'application/octet-stream' not supported

    Posted Sep 11, 2017 09:44 PM

    Thank you So much Yasuyuki-san,

    It worked.