microsoft / microsoft/azure-tools-for-java

[IntelliJ][ReportedByUser] Uncaught Exception unexpected failure in initializing client. java.lang.RuntimeException: Client initialization failed. Check if the endpoint is reachable and if your auth token is valid. More info: https://aka.ms/cosmosdb-tsg-service-unavailable-java

Open
#8,383 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
262
Forks
185
Avg merge
2d 21h
Merged PRs (30d)
1

Description

IntelliJ build version: 2023.3.2 IU-233.13135.103
OS: Mac OS X
JDK: JetBrains s.r.o. 17.0.9
Plugin version: 3.87.0-2023.3
Additional Info: None
Parent component:

com.intellij.openapi.wm.impl.IdeRootPane[,0,0,1728x994,layout=com.intellij.openapi.wm.impl.IdeRootPane$MyRootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=]

Error message:

<REDACTED: Generic Secret>
	at com.azure.cosmos.implementation.RxDocumentClientImpl.initializeGatewayConfigurationReader(RxDocumentClientImpl.java:546)
	at com.microsoft.azure.toolkit.lib.cosmos.sql.SqlCosmosDBAccount.getCosmosClient(SqlCosmosDBAccount.java:101)
	at com.microsoft.azure.toolkit.lib.cosmos.sql.SqlCosmosDBAccount.updateAdditionalProperties(SqlCosmosDBAccount.java:80)
	at com.microsoft.azure.toolkit.lib.cosmos.sql.SqlCosmosDBAccount.updateAdditionalProperties(SqlCosmosDBAccount.java:25)
	at com.microsoft.azure.toolkit.lib.common.model.AbstractAzResource.onRemoteUpdated(AbstractAzResource.java:166)
	at com.microsoft.azure.toolkit.lib.common.cache.Cache1.lambda$update$4(Cache1.java:103)
	at com.microsoft.azure.toolkit.lib.common.task.Azu

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the stack-trace entry at com.azure.cosmos.implementation.RxDocumentClientImpl.initializeGatewayConfigurationReader and follow the call into SqlCosmosDBAccount.getCosmosClient and updateAdditionalProperties. Use the linked Cosmos DB service-unavailable troubleshooting guide to investigate endpoint reachability and token validity. Done means establishing a reproducible cause and documenting or correcting the initialization failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, java
Domain
cloud, databases, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.