Unable to email OpenSearch dashboard

Versions:

AWS Amazon OpenSearch Service - OpenSearch 2.17

Issue:

Trying to execute following from my Mac terminal:

opensearch-reporting-cli \
-u  https://opensearch.mydomain.com/_dashboards/app/dashboards?security_tenant=global#/view/390a9ea0-15d5-11f0-af5f-5f69415fed48 \
-a saml \
-c userid:password \
-f pdf \
--smtphost myrelay.myco.com \
-e smtp -s myemailid@myco.com -r myemailid@myco.com \
-t global 

However, I get following error:

 Downloading report failed. Error: No element found for selector: [name="identifier"]

Not sure what am I missing. Any clues? Also is there a way to print verbose logs for opensearch-reporting-cli utility?

@Akshay How did you get this link? As per OpenSearch documentation you should use short URL.

i.e.

https://docker1.pablo.local:5601/goto/8b57d13ca943bc4e9a2f3f82f8f392b9?security_tenant=global

This is my working example.

root@MacBook-Pro .bin # ./opensearch-reporting-cli -u "https://192.168.1.71:5601/goto/8b57d13ca943bc4e9a2f3f82f8f392b9?security_tenant=global" -a basic -c admin:Eliatra123 -f pdf
✔ Fetched argument values
⠋ Connecting to url https://192.168.1.71:5601/goto/8b57d13ca943bc4e9a2f3f82f8f392b9?security_tenant=global(node:21767) 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://192.168.1.71:5601/goto/8b57d13ca943bc4e9a2f3f82f8f392b9?security_tenant=global
✔ The report is downloaded