Closed UncleSamSwiss closed 10 months ago
create
has this special logic because you can create a document without specifying it's ID but you still need to be able to find this document afterward.
An improved version of the BatchController will land in the JS SDK this week and then we will integrate it in the plugin instead of this custom code. It should fix the issue
When I tried to handle hundreds of payloads at the same time (they were queued and then handled when the application started), I got the following error:
I don't mind
BatchController.create()
throwing an exception if it can't create the document for whatever reason, but I would prefer to see the actual error and not an error about error handling.IMHO the problem is that
extractErrorByContent()
expectserrors
(coming fromexception.errors
) not to be undefined, but it is. Funny enoughcreate()
is the only method ofBatchController
that does nested error handling and honestly I have no clue why it should be different than the other methods which all have the same code pattern.