SAP / node-rfc

Asynchronous, non-blocking SAP NW RFC SDK bindings for Node.js
Apache License 2.0
249 stars 73 forks source link

RFC_COMMUNICATION_FAILURE #291

Closed CodingQueries2023 closed 11 months ago

CodingQueries2023 commented 1 year ago

On server I am getting the error RFC_COMMUNICATION_FAILURE and it is automatically trying to connect to our IP with PORT 3300, which is a wrong port. My correct PORT is 3629 but instead of 3629 it is trying to connect to 3300 and is getting failed to connect to. In my docker file I have mentioned the PORT 3629 and not 3300. Is there anything that you can suggest about the issue?

bsrdjan commented 1 year ago

Hello @CodingQueries2023,

docker port is irrelevant for RFC connection configuration. Please check similar questions

CodingQueries2023 commented 1 year ago

Hi @bsrdjan , I talked to our cloud ops team and they checked and told me the server on which the node-rfc code is hosted is able to access the SAP server and there is no connectivity issue in it. My server is ubuntu X86_64 and the SAP SDK I am using is Linux on X86_64 64 bit. But I am getting the following error:

serverError

Could you please suggest how to debug or go about this issue

bsrdjan commented 1 year ago

Which connection parameters are you using and did you already test with niping:

CodingQueries2023 commented 1 year ago

Hi @bsrdjan ,

I am using these parameters: new nodeRfc.Pool({ connectionParameters: { dest: 'MME', ASHOST: 'IP',GWSERV:'3629',CLIENT:'200', PASSWD: password, USER: userid } });

Could you please let me know if there is any issue with the parameter or if need to change anything here.

bsrdjan commented 1 year ago

GWSERV is used for server connections. in combination with GWHOST, not ASHOST. I cannot help with connection parameters' details because it depends on your ABAP system settings. Connection parameters are documented in sapnwrfc.ini file, in SAP NW RFC SDK folder "demo". There you may find when and how to use which parameter. You can also check with your ABAP system admin. If you have access to SAPGUI client, you can use the same parameters used in SAPGUI client for your ABAP system.

bsrdjan commented 11 months ago

Please re-open if needed