Comments (8)
Can you please confirm the steps to replicate this exception? Which version of SDK are you using?
from quickbooks-v3-dotnet-sdk.
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.
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.
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.
@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.
@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.
@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.
@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)
- Should SalesItemLineDetail have a UnitPrice property? HOT 3
- Refund Receipts and Credit Memos
- .NET Compatability HOT 1
- Connect
- Connect_tartle.co
- Remove ancillary serilog dependencies
- BinaryFormatter is used in your code HOT 1
- NuGet package no longer lists Newtonsoft.Json as a dependency, but it's still required HOT 2
- Sales Order
- Please remove Serilog dependencies
- IppDotNetSdkForQuickBooksApiV3 all nuget package versions are deprecated? HOT 2
- Please remove serilog dependencies HOT 10
- Can't add a TaxCode, URL SDK is using is incorrect
- serilog dependencies
- Unable to get the Vendor Credit applied to a bill
- Yet another problem due to serilog dependencies HOT 1
- "Invalid URI or Environment" in Blazor WASM app HOT 1
- BadRequest on SalesReceipt Add when using SalesLineItemDetail HOT 4
- When using the attachment API to upload the png file with content type "image/png" it does not upload the file comes back with null Attachable. Works for every other file type.
- Date deserialization broken since 14.6.3.5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quickbooks-v3-dotnet-sdk.