We found that demo has reports-user which was not present on our server (BTW, is this documented in wiki?) . So when we created this user the authentication error got resolved.
But we are getting the following error: (and reports.json in bahmni_config has not been changed at all)
HTTP Status 500 - Incorrect Configuration Can not construct instance of org.bahmni.reports.model.Config, problem: abstract types either need to be mapped to concrete types, have custom deserializer, or be instantiated with additional type information at [Source: { âvisitReport10â: { ânameâ: âVisit Reportâ, âtypeâ: âvisitsâ }, âvitalsTemplateReportâ: { ânameâ: âVitals Template Reportâ, âtypeâ: âobsTemplateâ, âconfigâ: { âtemplateNameâ: âVitalsâ, âpatientAttributesâ: [ âAADHAARâ, âmobileNoâ, âemailIdâ, âreferredByâ ], âapplyDateRangeForâ: âencounterCreateDateâ } }, âOPD/IPDVisitCountâ: { ânameâ: âOPD/IPD Visit Countâ, âtypeâ: âIpdOpdVisitCountâ }, âIPDPatientsReportâ: { ânameâ: âIPD Patients Reportâ, âtypeâ: âipdPatientsâ, âconfigâ: { âaddressAttributesâ: [ âaddress1â, âcity_villageâ ], âpatientAttributesâ: [ âAADHAARâ, âmobileNoâ, âemailIdâ, âreferredByâ ], âconceptNamesâ: [ âHeightâ, âWeightâ ], âfilterByâ: âDate of Dischargeâ } }, âpatientReportâ: { ânameâ: âPatient Informationâ, âtypeâ: âPatientReportâ, âconfigâ: { âaddressAttributesâ: [ âaddress1â, âcity_villageâ ], âpatientAttributesâ: [ âAADHAARâ, âmobileNoâ, âemailIdâ, âreferredByâ ] } }, âconcatenatedReportâ: { ânameâ: âConcatenatedReportâ, âtypeâ: âconcatenatedâ, âconfigâ: { âreportsâ: [ { ânameâ: âVisit Reportâ, âtypeâ: âvisitsâ, âconfigâ: { âforDataAnalysisâ: true, âpatientAttributesâ: [ âAADHAARâ, âmobileNoâ, âemailIdâ, âreferredByâ ], âvisitAttributesâ: [ âVisit Statusâ, âAdmission Statusâ ], âpatientAddressesâ: [ âaddress3â, âcity_villageâ ], âapplyDateRangeForâ: âvisitStopDateâ, âvisitTypesToFilterâ: [ âIPDâ, âOPDâ ] } } ] } } } ; line: 47, column: 32] (through reference chain: org.bahmni.reports.model.Reports[âpatientReportâ]->org.bahmni.reports.report.PatientReport[âconfigâ])