Scan the file before upload error

this.clamavClient.scan(docInputStream)

this line in VirusScannerImpl class give this error : “Method threw ‘xyz.capybara.clamav.exceptions.ClamavException’ exception.” caused by : “java.nio.channels.UnresolvedAddressException” What should i do ?

@BENZIZA_Mohamed it’s unable to resolve the address to the Clamav. Check if you have the correct IP address or hostname configured for the antivirus. mosip.kernel.virus-scanner.host=clamav.clamav

1 Like