-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[BUG] Managed Identity and SubmitTransactionAsync causes AtomFormatNotSupported exception #24126
Comments
Thank you for your feedback. Tagging and routing to the team member best able to assist. |
Small sample to reproduce. I guess System Assigned Identity would cause same issue but never tested. |
Hi @jedjohan - Thanks for the repro steps. Could you also provide the full stack trace from the exception mentioned above? |
@christothes sure, hope this is ok ?
|
Thanks - Could I ask for one more thing? Would you mind enabling logging on the client to show the batch request that is returning this error? It should look something like this:
|
@christothes absolutely, hope this helps :)
|
Thanks - Although I don't know why this reproduces for only in this scenario, I have an idea what the problem is. I think the batch requests are missing an |
Ahh, ok. Sounds reasonable. I looked after ways to set it on the TableClient but couldn't find any way to force json. As I understand it atom is not supported (on the Table Rest API) since quite a few years back ? |
This fix will be in next months package release. |
Describe the bug
When connecting to Azure Table with TokenCredential/Managed Identity and doing a SubmitTransactionAsync I get confusing "AtomFormatNotSupported" exception. When using full SA connectionstring it works fine. Also, regular AddEntityAsync works fine with Managed Identity.
Expected behavior
SubmitTransactionAsync should work when using Managed Identity
Actual behavior (include Exception or Stack Trace)
Exception:
"Service request failed.\r\nStatus: 415 (Unsupported Media Type)\r\n\r\nContent:\r\n<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\">
AtomFormatNotSupported
<message xml:lang="en-US">Atom format is not supported."To Reproduce
something like this:
Environment:
.NET SDK (reflecting any global.json):
Version: 6.0.100-rc.1.21458.32
Commit: d7c22323c4
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19043
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\6.0.100-rc.1.21458.32\
Host (useful for support):
Version: 6.0.0-rc.1.21451.13
Commit: d7619cd4b1
....... (long list of SDKs)
The text was updated successfully, but these errors were encountered: