Azure Cosmos DB - bad request - http:400
问题 Greetings my fellow developers, It is already 3 days I'm struggling with a connection to the Cosmos DB without success. I'm using retrofit as my REST client and GsonConverterFactory for serialization/deserialization. Current status is that I get HTTP:400 (bad request) from Cosmos DB REST API. I have tried to adopt the authentication header generation from this SO answer So here is my code (this unit test is runnable from your development environment. please see gradle.build lines to run it in