johnballantyne/qbws

SendRequestXMLfailed without any jobs

ashwaniare opened this issue · 1 comments

I am facing a similar issue as this one :
qbwc/qbwc#18

Facing the same exception:

Error message: Object reference not set to an instance of an object.
More info:
StackTrace =    at QBWebConnector.Logger.log(String method, String logText)
   at QBWebConnector.WebService.log(String method, String logText)
   at QBWebConnector.WebService.do_sendRequestXML(Int32 x, String wcTicket, String HCPResponseXML, String cfn, String qbNationality, Int32 qbXMLMajorVers, Int32 qbXMLMinorVers, Boolean& timeout)
Source = QBWCCommon

Whenever respond back with a 'NoOp' in order to support the async call, I get this SendRequestXML failed error. But if there are any jobs present it works just fine. The thread mentioned above talks about a solution too which I am not able to understand properly.
Any Ideas?

This is due to a bug in qbws. I blame Intuit for their poor implementation in the SDK example 😅

authenticate() should check how many jobs are available and return 'none' if there are 0. More explanation is available here.

Thanks for catching this, I will push a code fix for this tonight.