Skip to Content
1
Jul 15, 2020 at 09:55 AM

"Connect failed (invalid SERVERNODE '')"

1934 Views Last edit Jul 17, 2020 at 08:17 AM 2 rev

Hello,

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?