node-rfc icon indicating copy to clipboard operation
node-rfc copied to clipboard

NodeRED platform support

Open balamuruganvasudevan opened this issue 5 years ago • 21 comments

Hi, While i try to call RFC, getting this error. "Error: Pool configuration object must provide "connectionParameters"; see: https://github.com/SAP/node-rfc#usage"

Any support would be great/

balamuruganvasudevan avatar Aug 03 '20 11:08 balamuruganvasudevan

Please provide the source code to reproduce the issue.

bsrdjan avatar Aug 03 '20 11:08 bsrdjan

image

balamuruganvasudevan avatar Aug 03 '20 11:08 balamuruganvasudevan

I am using RFC call from node-red-contrib-saprfc node.. wanted to test with sample RFC call "ZQM_COA_GET_SENSOR_IL_DATA"

balamuruganvasudevan avatar Aug 03 '20 11:08 balamuruganvasudevan

image

balamuruganvasudevan avatar Aug 03 '20 11:08 balamuruganvasudevan

Are you using managed client (Pool) or direct client ? Where the connection parameters are maintained, before making an RFC call?

bsrdjan avatar Aug 03 '20 11:08 bsrdjan

Are you using managed client (Pool) or direct client ? Where the connection parameters are maintained, before making an RFC call?

It is a direct client. There is a provision in node-red-contrib-saprfc node to enter the following connection parameters user name: "xxxxxxxx", password: "xxxxxxx*", host: "xxxxxxxx", system number: "xx", client: "xxx", lang: "EN"

balamuruganvasudevan avatar Aug 03 '20 11:08 balamuruganvasudevan

image

balamuruganvasudevan avatar Aug 03 '20 12:08 balamuruganvasudevan

Perhaps the node-red-contrib-saprfc is not adapted for node 2.0 ? I would suggest to raise an issue in that repository or try with node-rfc < 2.0.

bsrdjan avatar Aug 03 '20 12:08 bsrdjan

Okay, Thanks.. Let me try and get back to you.

balamuruganvasudevan avatar Aug 03 '20 12:08 balamuruganvasudevan

Perhaps the node-red-contrib-saprfc is not adapted for node 2.0 ? I would suggest to raise an issue in that repository or try with node-rfc < 2.0.

Hi, I have downgraded to [email protected], still facing the same issue.

balamuruganvasudevan avatar Aug 05 '20 13:08 balamuruganvasudevan

node-red-contrib downgrade does not help buy try if the older node-rfc eventually works, like 1.2 or older.

If SAP customer/internal requirement, please send me an E-Mail.

bsrdjan avatar Aug 05 '20 13:08 bsrdjan

Hi Sorry mistakenly i written as node-red.. Its actually node-rfc...

balamuruganvasudevan avatar Aug 05 '20 14:08 balamuruganvasudevan

ok. Did you create the node-red-contrib issue, could you please link it here?

bsrdjan avatar Aug 05 '20 14:08 bsrdjan

https://github.com/PaulWieland/node-red-contrib-saprfc/issues/5

balamuruganvasudevan avatar Aug 05 '20 15:08 balamuruganvasudevan

ok. Did you create the node-red-contrib issue, could you please link it here?

Hi, could you please check and help me on this.

balamuruganvasudevan avatar Aug 12 '20 05:08 balamuruganvasudevan

@bsrdjan if you dont mind, could you please help me on this.

balamuruganvasudevan avatar Aug 21 '20 14:08 balamuruganvasudevan

The key problem with node-red is described in #148. Node-red recently moved to musl based Alpine Linux which is not supported by SAP NWRFC SDK. The author of node-red-contrib could eventually help find out where/how to maintain connection parameters but even then the connection to ABAP backend will not be possible because of #148. If the issue is related to SAP customer please send me an Email, need to learn more about the use-case.

bsrdjan avatar Aug 21 '20 19:08 bsrdjan

On which operating system the node-red and node-rfc are running here?

bsrdjan avatar Aug 27 '20 13:08 bsrdjan

Covered by #148

bsrdjan avatar Oct 22 '20 10:10 bsrdjan

The NodeRED integration requires SAP NWRFC SDK support on musl based Alpine Linux.

The feature request can be created as described here or vote for this request, once it is created: https://github.com/SAP/node-rfc/issues/148#issuecomment-716477460

bsrdjan avatar Oct 26 '20 11:10 bsrdjan

@balamuruganvasudevan Build your own docker image for node-red with https://github.com/node-red/node-red-docker/blob/master/docker-custom/README.md

Clone that repo and change the base image in the dockerfile from Alpine to one of the Debian base images. I am using FROM node:buster-slim AS base in mine.

Here are the nodejs base images: https://hub.docker.com/_/node/

PaulWieland avatar Jan 12 '21 20:01 PaulWieland