SAP / node-rfc

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

Connection reset by peer #277

Closed EdisonNetcon closed 1 year ago

EdisonNetcon commented 1 year ago

Hi team, I got the following error randomly in my SAP call from the node application.

"\nLOCATION    CPIC (TCP/IP) on local host with Unicode\nERROR       connection to partner 'IP address:3301' broken\nTIME        Tue Jan 17 15:01:41 2023\nRELEASE     753\nCOMPONENT   NI (network interface)\nVERSION     40\nRC          -6\nMODULE      D:/depot/bas/753_REL/src/base/ni/nixxi.cpp\nLINE        5434\nDETAIL      NiIRead: P=IP address:3301; L=IP address::55451\nSYSTEM CALL recv\nERRNO       10054\nERRNO TEXT  WSAECONNRESET: Connection reset by peer\nCOUNTER     9"}

I try to reproduce it on my local machine, but I could not do it. As well as I need to know what is COUNTER 9. What is the reason for this error? How can I fix this?

Does anyone help me?

bsrdjan commented 1 year ago

The counter is for internal diagnostics only.

Is the error reproducible, like occurring for every call or randomly? Occurs at logon or after logon, when trying to make RFC call?

In either case, a C-PIC trace is required, to analyse the root cause.

To capture RFC trace, set the global trace level to "3", in sapnwrfc.ini file, as in below example. Then reproduce the error and send the trace.

If ABAP system belongs to SAP customer, create a customer incident for BC-MID-RFC-SDK component, attach the trace to incident and send me the link.

sapnwrfc.ini

DEFAULT
RFC_TRACE=3 # 'global' trace level

DEST=QM7
USER=demo
PASSWD=welcome
ASHOST=ldciqm7
SYSNR=00
CLIENT=005
LANG=EN
# RFC_TRACE=2 # 'local' trace level 
bsrdjan commented 1 year ago

Please re-open if support still needed