api respond with an error
Question asked by amir bijani - August 16 at 9:39 AM
Answered
hello 
 
I have to smarter mail with the same version (SmarterMail Enterprise Edition Version: 16.3.6585), when I send an API request, in first on, I got the right answer, but in the second one I got this error  : 
object(stdClass)#1 (1) { ["GetAllDomainStatisticsResult"]=> object(stdClass)#2 (3) { ["Result"]=> bool(false) ["ResultCode"]=> int(-2) ["Message"]=> string(34) "Failed to retreive the domain list" }
 
it is interesting that in this second one, I can get spool count by API, but when I want to use this function(GetAllDomainStatistics), I get an error. 
also in the logs, there is no log about API!
so what is your opinion about that?

1 Reply

Reply to Thread
0
Andrea Rogers Replied
Employee Post Marked As Answer
Hello Amir,
 
To enable logging for the API, please log into SmarterMail as an Administrator and click on Troubleshooting in the navigation pane. On the Options tab, on the Process Logging card, ensure API Service is set to Detailed. You'll then be able to review API logging on the View Logs tab by changing the dropdown to API Service. 
 
Unfortunately, it's hard to say what could be causing this error, as there is a whole block of code that could be failing: 1.) couldn't load domains; 2.) couldn't retrieve disk space by domain; 3.) couldn't get stats per domain; or, 4.) couldn't concatenate all the data together.
 
The review to check whether this API call is working as expected would be best suited by our Support Department. If you are interested in contacting Support for troubleshooting, I'd be happy to reach out to you via email to gather your account details. Please let me know. 

Andrea Rogers
Communications Specialist
SmarterTools Inc.
(877) 357-6278

www.smartertools.com

Reply to Thread