Immutable solution version
Azure Cognitive Search: SearchResourceEncryptionKey raises 'not iterable' error during data source connection...
Complete solution
Covers this Azure AI Search problem: Azure Cognitive Search: SearchResourceEncryptionKey raises 'not iterable' error during data source connection.... This was a bug in azure-search-documents 11.6.0b4: SearchResourceEncryptionKey raised a 'not iterable' error when creating a data source connection because the SDK mishandled the encryption key type.
The problem
Issue Azure/azure-sdk-for-python#37251 (closed, 22 comments): - Package Name: azure.search.documents - Package Version: 11.6.0b4 - Operating System: OSX, version: 14.6.1 - Python Version: 3.9.6 Describe the bug When attempting to use the azure-search-documents SDK, the encryption key provided is not accepted due to a type mismatch. The SDK does not handle the type correctly, leading to a failure during deserialization when creating the data source connection. As according to the Microsoft documentation, SearchResourceEncryptionKey object is passed, but an error arises, where an iterable type is expected for encryption key.
What fixed it
This was a bug in azure-search-documents 11.6.0b4: SearchResourceEncryptionKey raised a 'not iterable' error when creating a data source connection because the SDK mishandled the encryption key type. Fix: upgrade azure-search-documents to 11.6.0b5 (shipped 2024-09-19), the reporter confirmed the issue resolved on the new pre-release. If you see type errors around SearchResourceEncryptionKey, check your package version first.
Evidence
In gh:Azure/azure-sdk-for-python#37251 (Azure AI Search), the issue reported was: Issue Azure/azure-sdk-for-python#37251 (closed, 22 comments): - Package Name: azure.search.documents - Package Version: 11.6.0b4 - Operating System: OSX, version: 14.6.1 - Python Version: 3.9.6 Describe the bug When attempting to use the azure-search-documents SDK, the encryption key provided is not accepted due to a type mismatch. The SDK does not handle the type correctly, leading to a failure during deserialization when creating the data source connection. As according to the Microsoft documentation, SearchResourceEncryptionKey object is passed, but an error arises, where an iterable type is expected for encryption key. The verified resolution from the thread: This was a bug in azure-search-documents 11.6.0b4: SearchResourceEncryptionKey raised a 'not iterable' error when creating a data source connection because the SDK mishandled the encryption key type. Fix: upgrade azure-search-documents to 11.6.0b5 (shipped 2024-09-19), the reporter confirmed the issue resolved on the new pre-release. If you see type errors around SearchResourceEncryptionKey, check your package version first. Source: mount the host path https at container path //github.com/Azure/azure-sdk-for-python/issues/37251
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_2wAopBaWzCMlT-_RnjbCcg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Azure Cognitive Search: SearchResourceEncryptionKey raises 'not iterable' error during data source connection... <span>— Vectle</span></a>