Comments (3)
Thanks for reporting this @taisuke-fujimoto.
Looking through the stack trace something seems a bit off here, nothing you did just something I noticed, where createTable
is attempting to deserialize the response as XML but the documentation for the REST API says it should be JSON:
If possible, could you get a capture of what Azurite is returning for a response when this API is called.
from azure-sdk-for-java.
@alzimmermsft
Captured from Azurite debug log.
- request
2024-06-04T03:12:51.029Z d72b49e6-8202-42cb-8b8a-2b0414591db9 info: TableStorageContextMiddleware: RequestMethod=POST RequestURL=http://127.0.0.1/devstoreaccount1/Tables RequestHeaders:{"host":"127.0.0.1:10002","date":"Tue, 04 Jun 2024 03:12:50 GMT","authorization":"SharedKeyLite devstoreaccount1:cq445rmWGNkGen9sV2RWNEmyLeiGi4kAsyMhyk24ELw=","x-ms-version":"2020-12-06","prefer":"return-no-content","content-type":"application/json;odata=nometadata","dataserviceversion":"3.0","x-ms-client-request-id":"f3601329-d7f5-4b22-9994-474088931aac","accept":"application/json;odata=minimalmetadata","user-agent":"azsdk-java-azure-data-tables/12.4.0 (17.0.6; Windows 11; 10.0)","content-length":"20"} ClientIP=172.17.0.1 Protocol=http HTTPVersion=1.1
- response
2024-06-04T03:12:51.039Z d72b49e6-8202-42cb-8b8a-2b0414591db9 error: ErrorMiddleware: Set HTTP body: "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<Error>\n <Code>AuthorizationFailure</Code>\n <Message>Server failed to authenticate the request. Make sure the value of the Authorization header is formed correctly including the signature.\nRequestId:d72b49e6-8202-42cb-8b8a-2b0414591db9\nTime:2024-06-04T03:12:51.035Z</Message>\n</Error>" 2024-06-04T03:12:51.040Z d72b49e6-8202-42cb-8b8a-2b0414591db9 info: EndMiddleware: End response. TotalTimeInMS=12 StatusCode=403 StatusMessage=Forbidden Headers={"server":"Azurite-Table/3.30.0","x-ms-error-code":"AuthorizationFailure","x-ms-request-id":"d72b49e6-8202-42cb-8b8a-2b0414591db9","x-ms-version":"2024-05-04","content-type":"application/xml"}
Even with the latest version of Azurite (3.30.0), the response when an authentication error occurs is XML.
from azure-sdk-for-java.
Thanks for sharing that @taisuke-fujimoto.
@jairmyree, @vcolin7 could you follow-up and do a comparison of the behavior when using the Tables service instead of Azurite. If the behaviors are different we can follow-up with Azurite to be consistent with the service, if the behaviors are the same we'll need to investigate further as this would mean that the service returns different error formats on authentication issues vs invalid request issues.
from azure-sdk-for-java.
Related Issues (20)
- [BUG] : sudden cessation of message consumption using ServiceBusProcessorClient in multiple Java applications HOT 12
- Wire existing cache classes into Event Hubs library
- Write MessageFlux for receiving messages in EventHubConsumerAsyncClient
- Write WindowsSubscriber for receiving messages in EventHubConsumerClient
- Rewrite EventProcessorClient partition pump to support v2 stack
- Add stress tests and performance tests for Event Hubs on v2 stack
- [FEATURE REQ] Passwordless for Azure Search Services HOT 6
- [FEATURE REQ]Enable e2e timeout for changeFeed query
- UUF - azure-dev-docs-pr - Troubleshoot multi-tenant authentication HOT 1
- [BUG] V2 ReceiverAsyncClient::receiveMessages is missing a validation check to error if subscribed more than once
- [FEATURE REQ] index attribute is missing in tool call object in streamed chat completion
- SPXERR_FILE_OPEN_FAILED HOT 2
- [QUERY] list blobs in a container, recursive option HOT 4
- Cannot analyze layout with new library azure-ai-documentintelligence HOT 1
- OOM error caused by AzureMonitorLogRecordExporter HOT 2
- Azure Resource Manager Creation is stuck in kubernetes cluster environment HOT 2
- [BUG]Azure Monitor-MismatchedInputException: Missing required creator property 'timespan' when metricsQueryClient.queryResource HOT 7
- [BUG] Not getting addressPrefix from Subnet object HOT 7
- [BUG] Cannot use azure-ai-documentintelligence with azure-search-documents HOT 6
- Rename directory: 400 invalidUri, but the folder gets renamed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-java.