Skip to content

Session token is not obtained automatically #36

@philippolis

Description

@philippolis
devtools::load_all()
#Loading DataToMetabase
mc <- MetabaseClient()
mc$get_databases()

Working with Posit Cloud and the metabase.citizensforeurope.org instance, this yields the following error:

Error: invalid assignment for reference class field ‘session’, should be from class “character” or a subclass (was class “NULL”)

Looking at mc, the user and password were read successfully from .Renviron, however, session is indeed NULL.

Reference class object of class "MetabaseClient"
Field "user":
[1] "(anonymized)"
Field "password":
[1] "(anonymized)"
Field "metabase_url":
[1] "https://metabase.citizensforeurope.org/"
Field "session":
[1] ""
Field "api_uri_prefix":
[1] "/api"

Here, the documentation says "session: Object of class character Session token, which is obtained automatically."

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions