Failed download pdf report using opensearch reporting cli tool

Describe the issue:
when download the pdf report using opensearch reporting cli we will receive login page pdf not report pdf.

Configuration:
opensearch-reporting-cli -u http[:]//192[.]168[.]1[.]206[:]9200/goto/fa8f708aa5b11ec1d98705df9b0efa80 --smtpusername=abc@example[.]com --smtppassword=password -c admin:admin -e smtp --smtphost=smtp[.]example[.]com --smtpport=465 --subject=“This is an email containing your dashboard report” -s abc[@]example[.]com -r xyz[@]example[.]com -f pdf