cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Parallel calls for adding mutliple products to the same cart using OCC fails

manish_sethi
Associate
Associate
0 Kudos
606

Hi,

We are using OCC rest service “/users/{userId}/carts/{cartId}/entries” to add multiple products to a single cart. This is done using parallel calls through threads where each call adds a single product to the same cart. The call works for the first time with only 2 products but fails if more than 3 products are used. Also, the call fails if I make a second call to add the same 2 products again. We are using Spring 5 Webdlux to initiate these parallel service calls.

We get a error “400 Bad Request” in the consumer, also following entries are created in the Hybris logs :

[RestHandlerExceptionResolver] Translating exception [de.hybris.platform.jalo.JaloObjectNoLongerValidException]: item 8796191391788 no longer valid (was removed): object no longer valid [RestHandlerExceptionResolver] de.hybris.platform.servicelayer.exceptions.ModelSavingException: item 8796191359020 no longer valid (was removed): object no longer valid

We are using the Hybris version 6.6

Can any one of you please provide some inputs here ASAP.

Regards, Manish

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member1320010
Participant
0 Kudos

you could try to throttle the number of requests either at the FE application you use or using a Filter in hybris