I am writing unit test while creating job worker I get error:
io.camunda.zeebe.client.api.command.ClientStatusException: gRPC message exceeds maximum size 4194304: 42008576
Below is my code to create job worker:
ActivatedJob activatedJob = zeebeClient
.newActivateJobsCommand()
.jobType(“io.camunda:http-json:1”)
.maxJobsToActivate(1)
.send()
.join()
.getJobs()
.get(0);
Error is thrown from join() method. could you please help.
Hello @Raj_Kishun_Singh ,
the message indicates that the response is larger than 4mb.
Could you please try to limit the variables you want to fetch?
Also, the error indicates that you are overusing the variables in zeebe.
We have a best practice about only storing:
- data required for the execution of the flow
- references towards business objects
- data required for analysis
in a process instance.
Best regards,
Jonathan
thank you.