Skip to Content
0
Apr 13, 2019 at 09:12 AM

Deploy to SAPUI5 ABAP Repository: error "406 Not Acceptable" (Trial AS 7.52)

767 Views

Hello,

I created a project in my SAPWebIDE Personal edition (version 161201, running on Mac). I am trying to deploy it on my Trial AS 7.52 which runs on Virtual Box openSUSE on the same Mac host.

However, in the moment when I choose the NPL system from the "Deploy to SAPUI5 ABAP Repository" popup, I get a message "The message content is not acceptable. Accepted content types: application/atomsvc+xml".

I checked the console in Chrome Developer Tools and it contains:

GET http://localhost:8080/webidedispatcher/destinations/NPL/sap/bc/adt/discovery 406 (Not Acceptable)

Here is what I already tried:

  • The URL in browser http://localhost:8080/webidedispatcher/destinations/NPL/sap/bc/adt/discovery downloads a discovery file which I attached to this question: discovery.txt
  • The note 2494880 - Error: "Make sure /sap/bc/adt/discovery is reachable and returns a valid XML." in SAP Web IDE suggests a list of things to check, so I did:
    1. SAML authentication: I checked by tcode SAML2: it is disabled as expected
    2. I have dev_abap and ui5_execute_abap in WebIDEUsage in my destination file NPL
    3. service /sap/bc/adt is enabled (SICF)
    4. Gateway active (SEGW service deployed, working well)
    5. My user DEVELOPER has SAP_ALL and S_A.SYSTEM profiles
    6. I am not using SAP Cloud connector
  • The blog Troubleshooting Deployment to an ABAP System from SAP Web IDE by Michal Keidar mentions similar problem referring to SAML which I checked (it is disabled).
    By the way, if my problem gets solved, maybe it would be a good idea to include the solution to this blog.

The message header is as:

Request URL: 
http://localhost:8080/webidedispatcher/destinations/NPL/sap/bc/adt/discovery
Request Method: GET
Status Code: 406 Not Acceptable
Remote Address: [::1]:8080
Referrer Policy: no-referrer-when-downgrade 

Response:

<exc:exceptionxmlns:exc="http://www.sap.com/abapxml/types/communicationframework"><namespaceid="com.sap.adt"/><typeid="ExceptionResourceNotAcceptable"/><messagelang="EN">The message content is not acceptable. Accepted content types: application/atomsvc+xml</message><localizedMessagelang="EN">The message content is not acceptable. Accepted content types: application/atomsvc+xml</localizedMessage><properties/></exc:exception>

Here comes my NPL destination file:

Description=NPL SAP NW 752 Developer
Type=HTTP
TrustAll=true
Authentication=NoAuthentication
Name=NPL
ProxyType=Internet
URL=http://vhcalnplci:8000
WebIDEUsage=odata_abap,ui5_execute_abap,dev_abap,odata_gen,bs_execute_abap,odata_xs
WebIDESystem=NPL
WebIDEEnabled=true
sap-client=001

Please help me with your ideas / experiences!

Thanks in advance and kind regards,

Igor Barbarić

    Attachments

    discovery.txt (110.3 kB)