Batch DELETE throws batch-response-parser error
See original GitHub issueHello,
I am doing a batch request which contains DELETE requests for PurchaseOrderItems using the following code:
public async deletePurchaseOrderItems(purchaseOrderId: string, purchaseOrderItemIds: string[]): Promise<void> {
try {
const deleteRequests = purchaseOrderItemIds.map(poi =>
PurchaseOrderItem.requestBuilder().delete(purchaseOrderId, poi)
)
// Execute the batch request
await batch(changeset(...deleteRequests)).execute(Constants.DESTINATION);
this.logger.debug(`Purchase Order ${purchaseOrderId} items deleted`);
} catch (err) {
this.logger.debug(err);
}
}
The request does what I need, which is to mark for deletion the items in the Purchase Order, but the logs show an error:
Could you please help me figure out where is the error coming from an how to handle it?
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (8 by maintainers)
Top Results From Across the Web
Batch delete request crashes app - Stack Overflow
This error can occur when you rename some files outside XCode. To solve it you can just remove the files from your project...
Read more >How to handle exceptions in a batch process - Drupal Answers
So in the end I took and overrode the plugin provided by the VBO. This will put the exception message into the summary...
Read more >Handling Errors During Batch Job - MuleSoft Documentation
When processing a batch job instance, a processor inside a batch step can fail or raise an error, for example, because of corrupted...
Read more >Creating a Batch Request Code Example - Microsoft Learn
Code samples showing how to create a batch request with the ... Response; // If the request is bad, the API returns the...
Read more >Running batch operations with PartiQL for DynamoDB
Explore how to use batch operations when using the PartiQL query language with Amazon DynamoDB.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@tomfrenken @jjtang1985 ,
Thanks so much for the support with the issue! Just got around to test it and it works, sorry for the delay 😃
Hi @stefania-santimbrean , we released a new version 1.40.0 this morning. I’ll close the ticket. Please feel free to reopen or comment in case you have further questions.
By the way, we release a
canary
version to npm for every commit, which means actually you could already test thecanary
version when the PR was merged.