The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fatal error or timeout with API2

Discussion in 'cPanel Developers' started by bsolano, Oct 11, 2008.

  1. bsolano

    bsolano Registered

    Joined:
    Oct 11, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hello.

    I am trying to use the Cpanel API indirectly, but there are errors that do not come from the syntax of my requests. For instance, when I try to call it using this URL:

    https://*****.**************.com:20...e><func>listmaildomains</func></cpanelaction>

    I get the following error:

    <fatalerror>[a fatal error or timeout occurred while processing this directive]</fatalerror><fatalerror>[a fatal error or timeout occurred while processing this directive]</fatalerror><fatalerror>[a fatal error or timeout occurred while processing this directive]</fatalerror><fatalerror>[a fatal error or timeout occurred while processing this directive]</fatalerror> <cpanelresult>
    <apiversion>2</apiversion>
    <func>listmaildomains</func>
    <module>park</module>
    </cpanelresult>


    API1 functions are working, but as you can see API2 is not. Do you know what's happening?

    Best regards,

    B.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Replace 'park' with 'Park' (without quotes). I spoke to QA about this and apparently our documentation on this is inaccurate. Modules should typically have the first letter capitalized in API2. I'll be sure to bring this to the attention of the appropriate personnel who can resolve this documentation issue.
     
    #2 cPanelDavidG, Oct 13, 2008
    Last edited: Oct 13, 2008
  3. bsolano

    bsolano Registered

    Joined:
    Oct 11, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Thank you very much... it works!
     
Loading...

Share This Page