Symptom
You are using CLI to access Datasphere with command [datasphere config cache init -H "<url>"] but without response.
Environment
Datasphere lower than 2023.24.0.
Cause
Known issue and will be fixed after 2023.24.0.
Resolution
This is a known issue which will be fixed in 2023.24.0. As a work around please follow the steps.
- Execute npm root -g to find the root directory <pwd> where the node modules are installed globally.
- Open the file <pwd>/@sap/datasphere-cli/node_modules/@sap/cli-core/commands/handler/options/pipe.js
- Add the following line after line 9 and leave the rest of the file untouched: throw new Error("no data received from pipe");
The file should look like this now:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.create = void 0;
const fs_extra_1 = require("fs-extra");
const logger_1 = require("../../../logger");
const utils_1 = require("./utils");
const getLogger = () => (0, logger_1.get)("commands.handler.options.pipe");
let data;
const getDataFromPipe = () => {
if (data === undefined) {
try {
data = JSON.parse((0, fs_extra_1.readFileSync)(0, "utf-8"));
}
catch (err) {
const { error } = getLogger();
error("failed to read from pipe", err);
data = null;
return getDataFromPipe();
}
}
else if (data === null) {
throw new Error("no data received from pipe");
}
return data;
};
/* jscpd:ignore-start */
const create = (option) => async () => async () => {
const { debug } = getLogger();
/* jscpd:ignore-end */
debug(`reading option ${option.longName} from pipe`);
const options = getDataFromPipe();
(0, utils_1.setOption)(option, options[option.longName]);
};
exports.create = create;
Keywords
datasphere config cache init, datasphere config cache init --host "<url>" , KBA , DS-DM , SAP Datasphere Data Marketplace , Problem