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

FossID: improve the error reporting when the credentials are wrong #8605

Open
nnobelis opened this issue Apr 30, 2024 · 0 comments
Open

FossID: improve the error reporting when the credentials are wrong #8605

nnobelis opened this issue Apr 30, 2024 · 0 comments
Labels
enhancement Issues that are considered to be enhancements

Comments

@nnobelis
Copy link
Member

nnobelis commented Apr 30, 2024

Following the discussion at #8591, it appears that, when the credentials to FossID (user and API key) are wrong, it is hard for the user to see that this is the cause of the failure.

13:38:31.582 [main] INFO  org.ossreviewtoolkit.plugins.scanners.fossid.FossId - Found project name 'gaia-bhthree' in URL https://github.com/esa/gaia-bhthree.git.
Exception in thread "main" com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `org.ossreviewtoolkit.clients.fossid.model.Project` from Array value (token `JsonToken.START_ARRAY`)
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 61] (through reference chain: org.ossreviewtoolkit.clients.fossid.EntityResponseBody["data"])
	at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)

getProject is the first authentified call to FossID. Any authentication failure here should be handled and reported accordingly.

@nnobelis nnobelis added bug Issues that are considered to be bugs to triage Issues that need triaging labels Apr 30, 2024
@sschuberth sschuberth added enhancement Issues that are considered to be enhancements and removed bug Issues that are considered to be bugs to triage Issues that need triaging labels Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issues that are considered to be enhancements
Projects
None yet
Development

No branches or pull requests

2 participants