Skip to content
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

Unable to connect #8

Open
jimcornmell opened this issue Oct 18, 2024 · 2 comments
Open

Unable to connect #8

jimcornmell opened this issue Oct 18, 2024 · 2 comments

Comments

@jimcornmell
Copy link

Hi Just purchased and I'm unable to connect (time expired on the evaluation, before I got access to the DB, things take time 🤷 ). Here is a screenshot of hitting the "Test Connection" button.

image

The error text is:

Connection test failed: com.google.cloud.firestore.FirestoreException: io.grpc
.StatusRuntimeException: PERMISSION_DENIED: Missing or insufficient permissions.

What extra permissions do I require? I can read and write from the db using a local Kotlin program, as a developer my organisation will not give me any more permissions (we have over 400 devs) as its one size fits all for access, and usually the minimum possible for security.

Or do I need specific info in the other fields? I've added a project and db for what my kotlin code uses and that changes the error to:

Connection test failed: java.util.NoSuchElementException: Collection contains no element matching
the predicate.

Which means nothing to me?

@AntonShuvaev
Copy link
Owner

Thanks for reporting the issue. Do you have permissions to list all collections, or do you have permissions only for specific collections?

@jimcornmell
Copy link
Author

jimcornmell commented Oct 20, 2024

Hi,

Googling how to list collections I found this:

ACCESS_TOKEN=$(gcloud auth application-default print-access-token)
curl -H "Authorization: Bearer ${ACCESS_TOKEN}" "https://firestore.googleapis.com/v1/projects/jl-pcard-data-collection-flex/databases/(default)/documents:listCollectionIds"

Which returns:

{}

So I guess the answer is no.

I know the name of the one I want to access, I just can't list them.

Jim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants