projectdiscovery / nuclei-action

Vulnerability Scan with Nuclei
https://projectdiscovery.io/nuclei
MIT License
242 stars 70 forks source link

Infrequent error: "Cannot read properties of undefined (reading 'replace')" #51

Closed allanbreyes closed 4 months ago

allanbreyes commented 1 year ago

Hi, team! We infrequently receive an error, maybe ~1-5% of the time:

Error: Cannot read properties of undefined (reading 'replace')

There's only 3 places in the codebase that call .replace, and I suspect it's the call to getLatestInfo sometimes having a transient error. I think it probably needs a retry, or at least some slightly better error-handling and logging. I can take a stab at it if I have some free cycles next week. Thoughts?

CCDi commented 4 months ago

Hi team! Any thoughts/updates on this error? We bumped into it once again! 🙏

RamanaReddy0M commented 4 months ago

@allanbreyes @CCDi added undefinded/existence checks before applying replace(..)

Error: Cannot read properties of undefined (reading 'replace')

will be fixed with https://github.com/projectdiscovery/nuclei-action/pull/88

CCDi commented 6 days ago

Hi ya'll, thank you so much for fixing this issue! Would you mind releasing a new version of the nuclei-action so we can utilize this fix?