projectdiscovery / nuclei-action

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

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

Closed allanbreyes closed 2 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 2 months ago

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

RamanaReddy0M commented 2 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