• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Resolved JSON API: Create/Update Client: "Call to a member function getApsBundleFilter() on null"

Giu

Basic Pleskian
Server operating system version
ubuntu
Plesk version and microupdate number
Plesk Obsidian Web Host Edition 18.0.38 Update #1
Hi there,

im testing out the JSON Api. So far everything works nicely but on
POST Create Client /clients
PUT Update Client /clients/{id}

i get the following Error:

{
"code": 0,
"message": "Call to a member function getApsBundleFilter() on null"
}

On POST Create Client the client still gets created even though no success message is returned but on Update (PUT /clients/{id} the update does not update.

So basically these two routes are bugged out at least on my installation

(Plesk Obsidian Web Host Edition
Version 18.0.38 Update #1)

anyone can help?
 
I couldn't reproduce this issue on a server with the most recent Plesk version (18.0.50 Update #2). Best advice I can give is to update to the newest Plesk version.
 
Last edited:
So i "solved" the issue by myself i guess

in the API Docs the following parameters where given:

{
"name": "John Smith",
"company": "Plesk",
"login": "john-unit-test",
"status": 0,
"email": "[email protected]",
"locale": "en-US",
"owner_login": "admin", <- i removed this and now no errors occur anymore
"external_id": "link:12345",
"description": "Nice guy",
"password": "changeme1Q**"
}

i removed the "owner_login": "admin" parameter and everything works as expected. I don't know if owner_login is an important parameter. what does it do? For me login is enough.
 
Good to hear you've got it solved. I still recommend updating Plesk to the most recent version tho.

The owner_login parameter sets the user name for the user (client) to log into Plesk. Which can be omitted when updating (PUT) client data. But is a required parameter when creating a client (POST).
 
Back
Top