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

[NpmHarvester] Support UNMET dependencies. #52

Open
JeroenKnoops opened this issue Jul 8, 2021 · 0 comments
Open

[NpmHarvester] Support UNMET dependencies. #52

JeroenKnoops opened this issue Jul 8, 2021 · 0 comments

Comments

@JeroenKnoops
Copy link
Member

Problem

Some npm trees have dependencies which are unmet. UNMET PEER DEPENDENCY

This will end-up with an 405 error in the harvester.

Example tree

  ├─┬ @svgr/[email protected]
  │ ├── @babel/[email protected] deduped
  │ ├─┬ @babel/[email protected]
  │ │ └── @babel/[email protected]
  │ ├─┬ @babel/[email protected]
  │ │ ├── @babel/[email protected]
  │ │ ├── UNMET PEER DEPENDENCY @babel/core@^7.13.0
  │ │ ├─┬ @babel/[email protected]

Log

2021-07-08 15:07:38.305 ERROR 13310 --- [         pool-2] .a.i.SimpleAsyncUncaughtExceptionHandler : Unexpected exception occurred invoking async method: public void com.philips.research.bombase.core.meta.registry.QueuedTaskRunner.execute(com.github.packageurl.PackageURL,java.util.function.Consumer,java.util.function.Consumer)

com.philips.research.bombase.core.npm.NpmException: Failed to harvest pkg:npm/unmet%20peer%20dependency%20%40babel%2Fcore@%5E7.13.0
	at com.philips.research.bombase.core.npm.domain.NpmHarvester.harvest(NpmHarvester.java:61) ~[classes!/:0.1.1-SNAPSHOT]
	at com.philips.research.bombase.core.npm.domain.NpmHarvester.lambda$onUpdated$0(NpmHarvester.java:45) ~[classes!/:0.1.1-SNAPSHOT]
	at com.philips.research.bombase.core.meta.registry.QueuedTaskRunner.lambda$execute$0(QueuedTaskRunner.java:38) ~[classes!/:0.1.1-SNAPSHOT]
	at java.base/java.util.Optional.ifPresent(Optional.java:176) ~[na:na]
	at com.philips.research.bombase.core.meta.registry.QueuedTaskRunner.execute(QueuedTaskRunner.java:36) ~[classes!/:0.1.1-SNAPSHOT]
	at com.philips.research.bombase.core.meta.registry.QueuedTaskRunner$$FastClassBySpringCGLIB$$b8050159.invoke(<generated>) ~[classes!/:0.1.1-SNAPSHOT]
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.3.7.jar!/:5.3.7]
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779) ~[spring-aop-5.3.7.jar!/:5.3.7]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.7.jar!/:5.3.7]
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750) ~[spring-aop-5.3.7.jar!/:5.3.7]
	at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115) ~[spring-aop-5.3.7.jar!/:5.3.7]
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[na:na]
	at java.base/java.lang.Thread.run(Thread.java:832) ~[na:na]
Caused by: com.philips.research.bombase.core.npm.NpmException: NPM server responded with status 405
	at com.philips.research.bombase.core.npm.domain.NpmClient.query(NpmClient.java:56) ~[classes!/:0.1.1-SNAPSHOT]
	at com.philips.research.bombase.core.npm.domain.NpmClient.getPackage(NpmClient.java:45) ~[classes!/:0.1.1-SNAPSHOT]
	at com.philips.research.bombase.core.npm.domain.NpmHarvester.harvest(NpmHarvester.java:50) ~[classes!/:0.1.1-SNAPSHOT]
	... 14 common frames omitted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant