Skip to Content

webide WebSocket handshake with response 403

Experts:

I just configured the APC(ABAP Push Channel) and AMC(ABAP Message Channel) in SAP GUI.

And I want to use it with UI5 in WebIDE and got the error message :

WebSocket connection to 'ws://xxxxxxxxxxxxxxxx:8000/sap/bc/apc/sap/ztest_apc' failed: Error during WebSocket handshake: Unexpected response code: 403

Below is the code :

webSocketURI = "ws://" + "xxxxxx:8000" + '/sap/bc/apc/sap/ztest_apc';   

var socket = this.socket = new sap.ui.core.ws.SapPcpWebSocket(webSocketURI,   sap.ui.core.ws.SapPcpWebSocket.SUPPORTED_PROTOCOLS.v10);    

socket = new WebSocket(webSocketURI);  // error happended here !!!!
 

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Apr 15, 2020 at 04:12 AM

    Solved.

    If anyone have the same issue,please let me know

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.