GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — FirestoreOptions .setCredentials() seems to be ignored · Issue #3458 · googleapis/google-cloud-java Closed Labels api: firestoreIssues related to the Firestore API.authpriority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DescriptionI recently upgraded Firestore from version 0.51.0-beta to 0.52.0-beta, which allows overriding of various options. My instantiation broke and now throws this exception: My previous service instantiation code looked like this: GoogleCredentials creds = getServiceAccountCredentialsFromFile(); Firestore firestore = new DefaultFirestoreFactory() .create( FirestoreOptions.newBuilder() .setCredentials(creds) .setProjectId(projectId) .build()); After upgrading this config no longer works; I have to do something like this: Firestore firestore = new DefaultFirestoreFactory() .create( FirestoreOptions.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(creds)) .setProjectId(projectId) .build()); I have also tried this: Firestore firestore = new DefaultFirestoreFactory() .create( FirestoreOptions.newBuilder() .setCredentials(creds) .setProjectId(config.getString("firestore.projectId")) .setCredentialsProvider(FirestoreOptions.getDefaultCredentialsProviderBuilder().build()) .build()); but this also did not work. Is it expected that Activity
MetadataMetadataAssigneesLabelsapi: firestoreIssues related to the Firestore API.authpriority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |