-
Notifications
You must be signed in to change notification settings - Fork 84
StorageBatch get IllegalStateException #694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ben could you take a look at this issue? It fell between the cracks for me. |
When invoking BatchRequest#execute(), we ensure the batch contains at least one request to process. Previously this check, did not provide any error message. Now, if the check fails "Batch is empty" will be the message of the resulting exception. Related to googleapis/java-storage#694
Looks like this error happens when the batch is empty. Unfortunately, the validation didn't include this information. I've proposed googleapis/google-api-java-client#2109 in the BatchRequest to include this additional context in the error. |
When invoking BatchRequest#execute(), we ensure the batch contains at least one request to process. Previously this check, did not provide any error message. Now, if the check fails "Batch is empty" will be the message of the resulting exception. Related to googleapis/java-storage#694
No code change necessary in this repo. Waiting on next release of api-client to flow into the repo before closing this. |
When invoking BatchRequest#execute(), we ensure the batch contains at least one request to process. Previously this check, did not provide any error message. Now, if the check fails "Batch is empty" will be the message of the resulting exception. Related to googleapis/java-storage#694
When invoking BatchRequest#execute(), we ensure the batch contains at least one request to process. Previously this check, did not provide any error message. Now, if the check fails "Batch is empty" will be the message of the resulting exception. Related to googleapis/java-storage#694
Fixed via and released a while ago googleapis/google-api-java-client#2109 |
I'm trying to delete in a batch and got IllegalStateException. I think I'm doing something wrong but can't tell what it is with the doc I can find. Thank you!
Java version: 11
storage version(s): google-cloud-storage 1.103.1
Code example
Stack trace
The text was updated successfully, but these errors were encountered: