Skip to content

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

@nnobelis

Description

@nnobelis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    scannerAbout the scanner tool

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions