Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC_Communication_Failure #74

Closed
vinayver198 opened this issue Aug 3, 2018 · 2 comments
Closed

RFC_Communication_Failure #74

vinayver198 opened this issue Aug 3, 2018 · 2 comments

Comments

@vinayver198
Copy link

vinayver198 commented Aug 3, 2018

Hi,

I am trying to make a connection like this
from pyrfc import Connection

def get_connection(connmeta):
"""Get connection"""
print 'Connecting ...', connmeta['ashost']
return Connection(**connmeta)

TEST = {
'user' : 'xxxx',
'passwd' : 'xxxx',
'ashost' : 'xxxx',
'sysnr' : 'xx',
'client' : 'xxx',
'sysid' : 'xxx',
'lang' : 'xx'
}

conn = get_connection(TEST)

After getting executed, it is throwing this error.
pyrfc._exception.CommunicationError: RFC_COMMUNICATION_FAILURE (rc=1): key=RFC_C
OMMUNICATION_FAILURE, message=Timeout while opening an RFC connection. [MSG: cla
ss=, type=, number=, v1-4:=;;;]

Where I am getting wrong ?
Please Help!!

@bsrdjan
Copy link
Contributor

bsrdjan commented Aug 3, 2018

It looks like a network connectivity issue. As a quick check, you may try if the same parameters work from SAPLOGON client, if SAPLOGON available?

For troubleshooting, you may try SAP niping tool and check if niping can reach the ABAP backend, using the same parameters. When niping works with certain parameters set, the PyRFC works as well.

Here few hopefully helpful links:

@vinayver198
Copy link
Author

Thanks @bsrdjan , Links helped me a lot :). Issue resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants