question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Batch DELETE throws batch-response-parser error

See original GitHub issue

Hello,

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: image

Could you please help me figure out where is the error coming from an how to handle it?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
stefania-santimbreancommented, Mar 22, 2021

@tomfrenken @jjtang1985 ,

Thanks so much for the support with the issue! Just got around to test it and it works, sorry for the delay 😃

1reaction
jjtang1985commented, Mar 19, 2021

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 the canary version when the PR was merged.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found