Skip to content

Error: Incorrect request parameters submitted #56

@eLviiis95

Description

@eLviiis95

I get this error by trying to test the example from php-plesk: ListEmailAddresses

Fatal error: Uncaught pmill\Plesk\ApiRequestException: Error: Incorrect request parameters submitted in C:\wamp64\www\src\pmill\Plesk\BaseRequest.php:87 Stack trace: #0 C:\wamp64\www\src\pmill\Plesk\ListEmailAddresses.php(44): pmill\Plesk\BaseRequest->__construct(Array, Array) #1 C:\wamp64\www\config.php(37): pmill\Plesk\ListEmailAddresses->__construct(Array, Array) #2 {main} thrown in C:\wamp64\www\src\pmill\Plesk\BaseRequest.php on line 87

here is the code:

$config = array(
    'host'=>'MYDOMAIN.DOM',
    'username'=>'USER',
    'password'=>'PASSWORD',
);

$params = array(
	'domain'=>'mydomain.dom',
);
$request = new \pmill\Plesk\ListEmailAddresses($config, $params);
$info = $request->process();
var_dump($info);

can any help me?
Plesk version is: 17.5.3

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