eclipse-dash / dash-licenses

Extract license information from content.
http://projects.eclipse.org/projects/technology.dash
Eclipse Public License 2.0
47 stars 33 forks source link

ERROR Could not parse the response from ClearlyDefined #345

Open phkrief opened 3 months ago

phkrief commented 3 months ago

Folks,

When I run the tool against the following file: https://gitlab.eclipse.org/eclipse-research-labs/nemo-project/nemo-kernel/meta-orchestrator/meta-orchestrator/-/blob/main/orchestration-engine/go.sum

I get the following result:

[main] INFO Querying Eclipse Foundation for license data for 43 items. [main] INFO Found 26 items. [main] INFO Querying ClearlyDefined for license data for 17 items. [main] ERROR Could not parse the response from ClearlyDefined: An error occurred when trying to fetch coordinates for one of the components: Client network socket disconnected before secure TLS connection was established. [main] INFO Found 8 items. [main] ERROR Could not parse the response from ClearlyDefined: An error occurred when trying to fetch coordinates for one of the components: Client network socket disconnected before secure TLS connection was established. [main] ERROR Could not parse the response from ClearlyDefined: An error occurred when trying to fetch coordinates for one of the components: Client network socket disconnected before secure TLS connection was established. [main] INFO Found 2 items. [main] ERROR Could not parse the response from ClearlyDefined: An error occurred when trying to fetch coordinates for one of the components: Client network socket disconnected before secure TLS connection was established. [main] INFO Found 1 items. [main] ERROR Could not parse the response from ClearlyDefined: An error occurred when trying to fetch coordinates for one of the components: Client network socket disconnected before secure TLS connection was established. [main] INFO Error querying ClearlyDefined for go/golang/github.com%2Fwagslane/go-rabbitmq/v0.12.4 [main] INFO Found 5 items. [main] INFO License information could not be automatically verified for the following content: [main] INFO [main] INFO go/golang/github.com%2Fwagslane/go-rabbitmq/v0.12.4 [main] INFO [main] INFO This content is either not correctly mapped by the system, or requires review.

Any idea of what id wrong? Thx a lot

waynebeaton commented 3 months ago

My best guess is that there's something wrong with ClearlyDefined. I can't replicate it. Maybe try again in a few minutes.

Let's leave this issue open regardless of whether or not it starts to work, though. We should try to do a better job of handling the error.

phkrief commented 3 months ago

Wayne, Are you saying that you got a correct analysis? I tried again and I got the same error :-(. So, maybe the error is on my side...

waynebeaton commented 3 months ago

It looks like a connection error to me. I'm not sure how to diagnose it further.

Here's what I get:

$ java -jar /gitroot/dash-licenses/shaded/target/org.eclipse.dash.licenses-1.1.1-SNAPSHOT.jar ~/Downloads/go.sum 
[main] INFO Querying Eclipse Foundation for license data for 43 items.
[main] INFO Found 26 items.
[main] INFO Querying ClearlyDefined for license data for 17 items.
[main] INFO Found 17 items.
[main] INFO License information could not be automatically verified for the following content:
[main] INFO 
[main] INFO go/golang/github.com%2Fwagslane/go-rabbitmq/v0.12.4
[main] INFO 
[main] INFO This content is either not correctly mapped by the system, or requires review.