Giter VIP home page Giter VIP logo

Comments (8)

nimisha84 avatar nimisha84 commented on June 9, 2024

Can you please confirm the steps to replicate this exception? Which version of SDK are you using?

from quickbooks-v3-dotnet-sdk.

ribbles avatar ribbles commented on June 9, 2024

IppDotNetSdkForQuickBooksApiV3 version .2.9.1, but none of the code has changed since that version. The issue is that the BatchAsyncompleted method only catches WebExceptions - all other exceptions are left uncaught on an async thread and thus crash the process.

The CDC api was being queried.

from quickbooks-v3-dotnet-sdk.

nimisha84 avatar nimisha84 commented on June 9, 2024

Can you update to the latest .Net SDK version 3.1.0 and share the raw request and response from the SDK so that I can replicate the issue. On another note, we do not support CDC call in Batch. Only CRUD and Query is supported in Batch.

from quickbooks-v3-dotnet-sdk.

nimisha84 avatar nimisha84 commented on June 9, 2024

Additionally I check that the Exception Handling for Batch is same as for regular(non Batch) calls. So the issue really might be with usage of CDC in batch.

from quickbooks-v3-dotnet-sdk.

timurka-xalien avatar timurka-xalien commented on June 9, 2024

@ribbles, sorry for a stupid question, but have you subscribed to batch.OnBatchExecuteAsyncCompleted event before calling batch.ExecuteAsync()? I see that there is no null check in code so it will throw NullReferenceException in such case:

     batchCompletedEventArgs.Error = eventArgs.Error;
     this.OnBatchExecuteAsyncCompleted(this, batchCompletedEventArgs);

from quickbooks-v3-dotnet-sdk.

ribbles avatar ribbles commented on June 9, 2024

@nimisha84 we are still seeing the issue intermittently. We will try the fix by @timurka-xalien so we can see what the underlying Exception is, and this should take care of the APPCRASH. Why did you close the issue?

from quickbooks-v3-dotnet-sdk.

nimisha84 avatar nimisha84 commented on June 9, 2024

@ribbles - I did not see any updates from you on this for long. Also, as mentioned earlier CDC is a not supported operation for Batch. Therefore the issue was close. I have reopened it. Let me know what additional questions you have.

from quickbooks-v3-dotnet-sdk.

ribbles avatar ribbles commented on June 9, 2024

@nimisha84 the fix provided by @timurka-xalien worked for us. Would you accept his fix so that we can move back to your code base?

from quickbooks-v3-dotnet-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.