Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'find' of undefined #156

Open
bolanki opened this issue Mar 11, 2024 · 4 comments
Open

Cannot read property 'find' of undefined #156

bolanki opened this issue Mar 11, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@bolanki
Copy link

bolanki commented Mar 11, 2024

Describe the bug
We've had an issue with this plugin where it would randomly give a "Cannot read property 'find' of undefined" error when running the Task during our build pipeline.

To Reproduce
This happens randomly but does appear to be more prevalent when running multiple builds at the same time.

Expected behavior
The dependency check plugin should install and run correctly.

Screenshots
image

@bolanki bolanki added the bug Something isn't working label Mar 11, 2024
@pippolino
Copy link
Collaborator

Ciao,

I think you ran the plugin when a new version of DependencyCheck was released in the repository DependencyCheck and the resources were not present in the new release.

Could you check if the problem is still present?

We will still take charge of the request to handle this case.

@bolanki
Copy link
Author

bolanki commented Mar 19, 2024

@pippolino, I checked the release log of Dependency Check and it seems the last 2 releases were 17 January 2024 and 15 March 2024. We've been having this issue intermittently during that gap and after the latest release (last error was 19 March 2024 03:02am. I went back in history, and there was a few... 20 February 2024 is another example 03:00am.

Perhaps I misunderstood you, but I don't think this is happening when a new release is deployed. It feels (from our side), that it happens during our nightly builds, when a lot of builds run at the same time.

@pippolino
Copy link
Collaborator

Hi @bolanki, it might be a problem of Rate limits for the REST API for unauthenticated users. The find command is used to search the asset to be downloaded, but if the API does not respond correctly there may be problems. I'm still investigating, I can try to put more detailed log messages.

@jvmap
Copy link

jvmap commented Apr 30, 2024

I get the same error. Like @bolanki, it seems to happen when several builds run shortly after one another.
It seems very plausible to me that we're hitting GitHub rate limits.
Would it be possible to configure the GitHub credentials to use for downloading dependency-check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants