AnsweredAssumed Answered

App.api.call error 500 with a custom API

Question asked by Gerardo Garcia Lima on May 26, 2016
Latest reply on May 27, 2016 by Tevfik Tümer

Hi everyone,

 

I got a big problem a I can't solve yet.

 

When I use an

 

app.api.call('read', '/custom_module/function/parameter1/parameter2/parameter3', null, {

complete:function(data){

},

success: function(data){

},

failure: function(data){

},

error: function(data){

}

});

 

It works pretty well on development environment, but not in QA, on this environment which have a high disponibility configuration, and there are 3 servers with apache.
If i call my function from the master server 127.0.0.5 everything works well, but if a call it from my domain name, sugarcrm.etc it won't work, and i think it has to do with the other 2 servers. It's strange because there area other APIs that execute a little time before and work perfectly. Even this API work if it does not go to the last return with the result from an Oracle SP, maybe it has to do with the Oracle Connection?
On the callback when it throws the error and the data has the xhr result, with a code 500 error even when the code has no error on it.

 

We notice that the api will obtain everything it needs but on the return it will break and give the error.

 

Has anyone encounter this?

 

Thank you very much!

Outcomes