Skip to content

[BUG] Download as CSV always fails: There was an error generating this report. #90

@bjenkins-partstech

Description

@bjenkins-partstech

What is the bug?

This command to download a report as a CSV fails after about a minute despite the timeout being set to 5 minutes. Subsequent attempts from the UI fail immediately with Download error: There was an error generating this report.

$ npx -y @opensearch-project/reporting-cli --url "https://opensearch.vpn.address.com/_dashboards/goto/4b051e8780007aff9e295ca8dbce8c79?security_tenant=global" --auth basic --credentials "username:password" --format csv --timeout 300000
✔ Fetched argument values
⠋ Connecting to url https://opensearch.vpn.address.com/_dashboards/goto/4b051e8780007aff9e295ca8dbce8c79?security_tenant=global(node:2624) NOTE: The AWS SDK for JavaScript (v2) is in maintenance mode.
 SDK releases are limited to address critical bug fixes and security issues only.

Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the blog post at https://a.co/cUPnyil
ℹ Credentials are verified
ℹ Connected to url https://opensearch.vpn.address.com/_dashboards/goto/4b051e8780007aff9e295ca8dbce8c79?security_tenant=global
✖ Downloading report failed. TypeError: Cannot read properties of undefined (reading 'toString')

How can one reproduce the bug?

It's a self-hosted instance behind a VPN. What can I do to debug this?

What is the expected behavior?

It downloads the report as a CSV.

What is your host/environment?

OpenSearch v2.5.0

Do you have any screenshots?

Image

Do you have any additional context?

I have another command with a different search that works just fine:

$ npx -y @opensearch-project/reporting-cli --url "https://opensearch.vpn.address.com/_dashboards/goto/7f6a07733e45b3c7b784900d9849f712?security_tenant=global" --auth basic --credentials "username:password" --format csv --timeout 300000
✔ Fetched argument values
⠋ Connecting to url https://opensearch.vpn.address.com/_dashboards/goto/7f6a07733e45b3c7b784900d9849f712?security_tenant=global(node:24436) NOTE: The AWS SDK for JavaScript (v2) is in maintenance mode.
 SDK releases are limited to address critical bug fixes and security issues only.

Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the blog post at https://a.co/cUPnyil
(Use `node --trace-warnings ...` to show where the warning was created)
ℹ Credentials are verified
ℹ Connected to url https://opensearch.vpn.address.com/_dashboards/goto/7f6a07733e45b3c7b784900d9849f712?security_tenant=global
✔ The report is downloaded

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions