ChangeFeedClient.list_changes() causes InvalidQueryParameterValue error
See original GitHub issue- azure-storage-blob-changefeed:
- 12.10.0b3:
- OSX:
- 3.9:
I’m using the sample code to list all change feed events. My code is almost the same, verbatim, save the fact that I need to workaround for issue 12568. Following the sample code you provide, I get this error:
Exception: HttpResponseError: (InvalidQueryParameterValue) Value for one of the query parameters specified in the request URI is invalid. RequestId:2bc2b517-f01f-0001-67cb-55e1c0000000 Code: InvalidQueryParameterValue
To Reproduce Call this code to list all change events … based on the sample code provided example, but using the workaround for issue 12568
cf_client = ChangeFeedClient(
account_url = "https://{}.dfs.core.windows.net".format(STORAGE_ACCOUNT),
# bug work around - see: https://github.com/Azure/azure-sdk-for-python/issues/12568#issuecomment-661678790
credential={"account_name": STORAGE_ACCOUNT, "account_key": KEY_STR}
)
change_feed = cf_client.list_changes() # breaks here
Expected behavior According to the documentation, we should be able to get a result without any error. I mean, its only 2 function calls at this point to get it to break … what could a user be doing wrong at that point?
Both my STORAGE_ACCOUNT and KEY_STR values are correct since I use them with azure-storage-file-datalake==12.5.0
without any problems.
Additional context My requirements. file: req.txt
Issue Analytics
- State:
- Created a year ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
@sylnsr Mike, sorry, I was simplifying a bit. We do need to support other account URLs such as custom domains, CDNs, static websites, as well as some other upcoming features… These would also work as long as they point to the blob endpoint. So we need to keep support for mutable URLs.
@sylnsr Thanks for the issue. We will take a look asap