You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Team, I am receiving all the attributes as null in the response from the ScanFile method. Where as sending request via brew client to my server, i am getting a valid response. Could someone please help me on this. It might be some issue related to library or my configuration.
FYI: I am getting a valid response, when I use debugger mode and not in a normal mode. The configuration below is in nestjs.
This might be happening due to the asynchronous operations running out of time in normal mode, where as in debug mode it might be having enough time to execute in between running the break points.
Could someone please let me know what might be causing the issue. Thanks in Advance.
The text was updated successfully, but these errors were encountered:
I know it's been a while but I've got a couple things I noticed...
You're doing import NodeClam = require('clamscan'); when it should be import NodeClam from 'clamscan'
You should really just await the response from init instead of doing await (await clamScan).isInfected() -- that's just confusing/funky.
That being said, is your scanning service local or remote? If it's remote, it may be suffering from a timeout. You can increase the timeout with an optional config (timeout). The default is already 60 seconds, though. If you scanning very large files, you may need more. I suspect that's not the issue either, though, if you're thinking the difference in debugging or not is the difference in the timing.
All the tests seem to be working out just fine and I have several production servers running Ubuntu and AlmaLinux (RIP) that don't have this issue as well as my personal Mac for development. It's likely a code or configuration issue.
Team, I am receiving all the attributes as null in the response from the ScanFile method. Where as sending request via brew client to my server, i am getting a valid response. Could someone please help me on this. It might be some issue related to library or my configuration.
FYI: I am getting a valid response, when I use debugger mode and not in a normal mode. The configuration below is in nestjs.
package.json
service.ts
The result I am receiving is the below
I see the below response using debugger when i tried to debug using breakpoints
This might be happening due to the asynchronous operations running out of time in normal mode, where as in debug mode it might be having enough time to execute in between running the break points.
Could someone please let me know what might be causing the issue. Thanks in Advance.
The text was updated successfully, but these errors were encountered: