Skip to Content

"Connect failed (invalid SERVERNODE '')"


when trying to query an odata service generated by cds trying to retrieve the data from the database, an error occurs with the following description:

  code: '-10719',
  message: "Connect failed (invalid SERVERNODE '')",
  sqlState: ''

Here is the relevant section in the logs:

[2020-07-15T08:53:18.539Z | ERROR | 1548554]: Connect failed (invalid SERVERNODE '')
[INTERNAL ERROR] TypeError: Cannot read property 'split' of undefined
    at chainEndCallback (/home/vcap/app/node_modules/@sap/odata-server/lib/invocation/CommandExecutor.js:38:76)
    at /home/vcap/app/node_modules/@sap/odata-server/lib/invocation/CommandExecutor.js:84:25
Please report this error.
#2.0#2020 07 15 08:53:18:546#+00:00#ERROR#/AppController/Dispatcher################PLAIN##[{xsa.newlineSeparator}  'Error occurred, Cannot proxy application requests...Error: socket hang up'{xsa.newlineSeparator}]#

I am not sure to understand what this error means. Is maybe the address of the relevant service missing? Or is the request to this service rejected?

The error is thrown in a function that gets as input the options including the user credentials and the connection pool description, in the Client library in the cds module. What is the cause and how to fix it?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jul 17 at 08:28 AM

    I found the answer and now it works. The project is made up of a db module and a node.js module. In the declaration of the node.js module in the mta there was a dependency to a managed hana service instance instead of the hdi container. When this is the case some or all the properties are missing in the credentials that are injected before sending the request to the hdi container, and one of them is the host. The error message "Connect failed (invalid servernode '')" actually says that the host is missing in the credentials. Hope this helps someone.

    Add a comment
    10|10000 characters needed characters exceeded