SAP / node-rfc

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

NodeRED platform support #161

Open balamuruganvasudevan opened 3 years ago

balamuruganvasudevan commented 3 years ago

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/

bsrdjan commented 3 years ago

Please provide the source code to reproduce the issue.

balamuruganvasudevan commented 3 years ago

image

balamuruganvasudevan commented 3 years ago

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 commented 3 years ago

image

bsrdjan commented 3 years ago

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

balamuruganvasudevan commented 3 years ago

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 commented 3 years ago

image

bsrdjan commented 3 years ago

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.

balamuruganvasudevan commented 3 years ago

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

balamuruganvasudevan commented 3 years ago

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 node-red@1.0.0, still facing the same issue.

bsrdjan commented 3 years ago

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.

balamuruganvasudevan commented 3 years ago

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

bsrdjan commented 3 years ago

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

balamuruganvasudevan commented 3 years ago

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

balamuruganvasudevan commented 3 years ago

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 commented 3 years ago

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

bsrdjan commented 3 years ago

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 commented 3 years ago

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

bsrdjan commented 3 years ago

Covered by #148

bsrdjan commented 3 years ago

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

PaulWieland commented 3 years ago

@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/