-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix - passing None as data account should be handled gracefully #44939
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
Open
dibahlfi
wants to merge
4
commits into
hotfix/azure-cosmos_4.14.4
Choose a base branch
from
hotfix/azure-cosmos_4.14.6
base: hotfix/azure-cosmos_4.14.4
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
Author
|
/azp run python - cosmos - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
simorenoh
approved these changes
Jan 30, 2026
Co-authored-by: Simon Moreno <30335873+simorenoh@users.noreply.github.com>
Member
Author
|
/azp run python - cosmos - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
* Remove ApiKey usage * Add -TestAuth flag to verify Bearer token authentication * TEMP: Enable TestAuthOnly for pipeline testing * Remove testing logs * Additional clean up * Keep apikey fallback while migrating * Keep migration to new endpoint * Keep migration to new endpoint * Feedback --------- Co-authored-by: Alitzel Mendez <almend@microsoft.com>
Member
Author
|
/azp run python - cosmos - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The _aenter_used flag was introduced in SDK 4.14.2 to optimize the async with pattern. It tracks whether the CosmosClient was initialized using the async context manager (async with CosmosClient(...) as client)
When using async with, the SDK's aenter method fetches the database account before calling force_refresh_on_startup(). The _aenter_used flag tells the SDK "the database account was already fetched, don't fetch it again."
The problem occurs when external code calls force_refresh_on_startup(None) directly: this results in an AttributeError: 'NoneType' object has no attribute '_WritableLocations'