Skip to content

Invalid API key in Client.php #20

@sonn-gamm

Description

@sonn-gamm

Hi,
thanks for the great plugin.

I moved the API key generate by etherpad-lite from the main.php of the wiki I am working on, to etherpad-lite-client's Client.php.

Therefore, when creating a new instance in main.php, I am doing like this:

$instance = new EtherpadLite\Client($apiKey, $baseUrl);

This throws the following error though:

Uncaught exception 'InvalidArgumentException' with message '[] is not a valid API key

I expect it to work and being more of a discrete way to store the API key, but it's not. If I replace the above $instance with

$instance = new EtherpadLite\Client('api-key-xxxx', $baseUrl);

etherpad-lite-client works.

Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions