Skip to content

elapi whomai command does not work with API token without the ID prefix #175

@Cs137

Description

@Cs137

Many thanks for the nice CLI!

I just discovered that it the elapi whoami command does not work with "old" API tokens that do not contain the ID prefix. The change in the token's pattern is discussed in this elabFTW issue. If the "old" token is provided, the CLI aborts and raises the following error:

PatternNotFoundError("No API token ID prefix found in API token string!")

There is no need to address anything, I just created this issue to inform other users that might run into the same situation. Generating a new token is the obvious solution to tackle it.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions