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
Exception java.lang.IllegalStateException: Could not find policy 'pick_first' #5493
Comments
@SkunFly can you provide how you configure loadbalancer when you create channel? did you try what error message suggest? |
I don't configure anything. I simply follow the guide and it should work. Maybe I'm missing something but I think not. If you try to replicate this you will face the same error. https://cloud.google.com/firestore/docs/quickstart-servers I don't know if this is the correct place to open an issue, because I'm doing a guide about Firestore. But the stack trace, the exception message and the context of the error motivated me to open an issue here. |
Can you run the complete quickstart example? if the issue is still exists, file against firestore? (or the example repository) |
When I execute the provided class "Quickstart" it gives me the above error.
I already opened an issue in their platform, but at the moment they gave no response. |
@SkunFly Where is your client app running? GCP or Android? |
GCP |
Hitting the same issue on a local machine. Same error and I do not have a loadbalancer configured either. |
@Noctune, are you running the same code(firestore quickstart)? |
@creamsoup Nope. This is plain GRPC. I will try to see if I can find a minimal example that causes it, but it seems difficult to replicate. |
Turns out it was due to the Gradle Shadow plugin not merging service files by default. I just had to add this to my
|
@Noctune, thanks for finding the fix. do you want to make a PR? |
@creamsoup No, I had to add that snippet to my project's |
okay. that's common way to lose the |
i'm seeing a similar issue using Maven Shade plugin. I can confirm I do have |
For Maven Shade plugin, was able to fix it by configuring to use ServicesResourceTransformer. |
If you are shading or building uber jar solution mentioned above should fix the issue. for @SkunFly, see issue on the firestore. |
Maven Shade plugin has been working since 2017: #3141 (comment) |
Please answer these questions before submitting your issue.
What version of gRPC are you using?
1.18.0
When executing the Quickstart class of Google Firestore Service I get this exception.
https://cloud.google.com/firestore/docs/quickstart-servers
The text was updated successfully, but these errors were encountered: