-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Azure cosmos 4.15.0 user_agent_overwrite causes connection problem #45387
Copy link
Copy link
Closed
Labels
CosmosService AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Metadata
Metadata
Assignees
Labels
CosmosService AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Type
Projects
Status
Done
Describe the bug
With the new version of azure-cosmos we get the following message
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The bug does not appear in version 4.14.6
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
In the file here which creates the connection:
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/cosmos/azure-cosmos/azure/cosmos/_cosmos_client_connection.py#L248
I believe without being sure that the problem is here we should have also a kwargs.pop("user_agent_overwrite", None)
The file _user_agent_policy.py also uses user_agent_overwrite but it gedts poped in the parent class:
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/azure/core/pipeline/policies/_universal.py#L252