mssql-ssrs icon indicating copy to clipboard operation
mssql-ssrs copied to clipboard

Can't get reports on MSSQL Server 2017

Open DenisBessa opened this issue 4 years ago • 1 comments

Hi,

I'm getting an undefinied response with the listChildren.

const ssrs = require("mssql-ssrs");

async function loginServer() {
  try {
    const config = { username: "test", password: "test" };
    await ssrs.start(
      "https://myserver.com/ReportServer",
      config,
      null,
      "basic"
    );

    var reportList = await ssrs.reportService.listChildren("/", true);

    console.log(reportList);
  } catch (error) {
    console.log(error);
  }
}

loginServer();

Help, please!

DenisBessa avatar Jun 24 '20 20:06 DenisBessa

The only time I have been able to get a null is when there are no items in the path/folder provided but its not an error, that is the result from the server, there are no extra manipulations. Also if the path does not exist it throws an error Maybe it would help to always return an array?

vision10 avatar Oct 28 '20 10:10 vision10