Skip to content

Error message decoding strings is wrong or wrongly applied #45

@KariOlson-KD

Description

@KariOlson-KD

When decoding Base64 strings, I see this error pretty frequently:
"Expected consent string to contain at least 17bytes, but found only 17 bytes"

This message is either being thrown in error:
You needed at least x and you got exactly x. This is not a problem.

Or the error message is being generated incorrectly and one of the two values is wrong. The correct error should be either of :
"Expected consent string to contain at least 17bytes, but found only 16 bytes"
"Expected consent string to contain at least 18bytes, but found only 17 bytes"

Here are some examples of strings that are generate this error when querying for purpose 5:
BOP02S_OkoBERAKABCENBDA
BOmOjKtOmOjKtAKABBENBDA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions