cnescatlab / sonar-cnes-report

Generates analysis reports from SonarQube web API.
GNU General Public License v3.0
456 stars 155 forks source link

An error has occurred. Please contact your administrator #383

Closed KAILASH08 closed 8 months ago

KAILASH08 commented 8 months ago

Describe the bug

While trying to generate a report using CNES report it gives error, {"errors":[{"msg":"An error has occurred. Please contact your administrator"}]}

To reproduce

Steps to reproduce the behavior.

  1. Go to 'More and select CNES Report'
  2. Click on 'Generate button to generate report'
  3. See error "{"errors":[{"msg":"An error has occurred. Please contact your administrator"}]}"

Expected behavior

It should generate the report._

Screenshots & log

Attached

User environment

Please complete the following information. http://localhost:8080/extension/cnesreport/report

  • OS: [e.g. Windows 11] *sonar-cnes-report-3.2.2.jar
  • image

    sonarqube-7.9.6

Topin2001 commented 8 months ago

Unfortunately, the issue seems to be from your side since I'm not able to reproduce it. However, I can recommend you to upgrade at least the sonar-cnes-report version that you're using. It might help. Feel free to reopen a ticket if you get new error/log that can help us to resolve the problem if it comes with the plugin itself.

KAILASH08 commented 8 months ago

Dear @Topin2001 , Thank you. I could resolved the issue after upgrading SonarQube to sonarqube-9.9.3.79811 and using sonar-cnes-report-4.2.0.jar with it. Also used setx command in cmd to set SONAR_JAVA_PATH as per the requirement. Thank you.