• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

API Bugs / Issues

abdi

Platinum Pleskian
Hello Team,

I think there is a bug in the API particularly this section:

http://download1.parallels.com/Plesk/Doc/de-DE/online/plesk-api-rpc/index.htm?fileName=33852.htm

Apparently the code below triggers the error (below):
Code:
<packetversion="1.6.3.5">
<customer>
<add>
   <gen_info>
       <cname>LogicSoft Ltd.</cname>
       <pname>Stephen Lowell</pname>
       <login>stevelow</login>
       <passwd>Jhtr66fBB</passwd>
       <status>0</status>
       <phone>416 907 9944</phone>
       <fax>928 752 3905</fax>
       <email>[email protected]</email>
       <address>105 Brisbane Road, Unit 2</address>
       <city>Toronto</city>
       <state/>
       <pcode/>
       <country>CA</country>
   </gen_info>
</add>
</customer>
</packet>

The above triggers the error

Code:
Array
(
    [@attributes] => Array
        (
            [version] => 1.6.3.5
        )

    [system] => Array
        (
            [status] => error
            [errcode] => 1014
            [errtext] => Parser error: Request is invalid. Error in line 7: Element 'cname': This element is not expected. Expected is one of ( status, phone, fax, email, address, city, state, pcode, country, locale ).
        )
)

Work around is to omit the
Code:
<cname>LogicSoft Ltd.</cname>

Is this a bug or am missing out something?

Thanks!
 
Have you tried it with

<packet version="1.6.7.0">

?
 
Last edited:
Changing the packet version yields the same following error:
Code:
Array
(
    [@attributes] => Array
        (
            [version] => 1.6.7.0
        )

    [system] => Array
        (
            [status] => error
            [errcode] => 1014
            [errtext] => Parser error: Request is invalid. Error in line 7: Element 'cname': This element is not expected. Expected is one of ( status, phone, fax, email, address, city, state, pcode, country, locale ).
        )

)
 
Strange. I can't reproduce this issue on our test servers.
Maybe you have something wrong in your XSD schemas?

/usr/local/psa/admin/htdocs/schemas/rpc/plesk_client.xsd <xs:complexType name="clientAddGenInfo">
/usr/local/psa/admin/htdocs/schemas/rpc/<version>/plesk_client.xsd <xs:complexType name="clientAddGenInfo">
 
Back
Top