Operating System & Version
CentOS v7.9.2009 STANDARD kvm
cPanel & WHM Version
106.0.9

Parwab

Member
Nov 10, 2022
6
0
1
France, LYON
cPanel Access Level
Root Administrator
Hello,



I've had this problem for a long time, but it's starting to get annoying.



When I ask the api to generate a connection link, it gives me an error. I also have this error with WHMCS which can't connect with the api, that is, only this feature doesn't work.

It works with the connection as a user from the WHM.



However, when I do it with the command line utility, it works.

cPanel API Response: Internal Error (ID 548815680974261)

log :
warn [whostmgrd] The subprocess (whostmgr (xml-api)) exited with an error (ID 548815680974261)
session_log
info [xml-api] 45.1XXXXX NEW root:QreBlaiAOhEs9DPM:create_user_session address=45.148XXXXXXX,app=Whostmgr::API::1::Session,creator=root,method=create_user_session
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
13,259
2,086
363
cPanel Access Level
Root Administrator
Thanks for that information. When using the test Perl script on that page, I don't receive any errors, although I did have to install the JSON and LWP::Protocol::https Perl modules.

Here is the output from my "test.pl" script:

Code:
{"data":[{"type":"main","homedir":"/home/username","user":"username"},{"user":"[email protected]","type":"sub","homedir":"/home/username/public_html/cptest"},{"user":"[email protected]","homedir":"/home/username/public_html/ftptest","type":"sub"},{"homedir":"/etc/apache2/logs/domlogs/username","type":"logaccess","user":"username_logs"}],"errors":null,"metadata":{"transformed":1},"warnings":null,"messages":null,"status":1}