{"action":"opened","issue":{"url":"https://api.github.com/repos/Azure/azure-cosmos-dotnet-v3/issues/11","repository_url":"https://api.github.com/repos/Azure/azure-cosmos-dotnet-v3","labels_url":"https://api.github.com/repos/Azure/azure-cosmos-dotnet-v3/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-cosmos-dotnet-v3/issues/11/comments","events_url":"https://api.github.com/repos/Azure/azure-cosmos-dotnet-v3/issues/11/events","html_url":"https://github.com/Azure/azure-cosmos-dotnet-v3/issues/11","id":388321624,"node_id":"MDU6SXNzdWUzODgzMjE2MjQ=","number":11,"title":"FormatException : Input string was not in a correct format.","user":{"login":"RockyBalboa2018","id":45010360,"node_id":"MDQ6VXNlcjQ1MDEwMzYw","avatar_url":"https://avatars2.githubusercontent.com/u/45010360?v=4","gravatar_id":"","url":"https://api.github.com/users/RockyBalboa2018","html_url":"https://github.com/RockyBalboa2018","followers_url":"https://api.github.com/users/RockyBalboa2018/followers","following_url":"https://api.github.com/users/RockyBalboa2018/following{/other_user}","gists_url":"https://api.github.com/users/RockyBalboa2018/gists{/gist_id}","starred_url":"https://api.github.com/users/RockyBalboa2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RockyBalboa2018/subscriptions","organizations_url":"https://api.github.com/users/RockyBalboa2018/orgs","repos_url":"https://api.github.com/users/RockyBalboa2018/repos","events_url":"https://api.github.com/users/RockyBalboa2018/events{/privacy}","received_events_url":"https://api.github.com/users/RockyBalboa2018/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-06T17:35:50Z","updated_at":"2018-12-06T17:35:50Z","closed_at":null,"author_association":"NONE","body":"i try this very simple code sample, but getting a FormatException : Input string was not in a correct format.\r\nDatabase and collection are created, but exception occurs on container.Items.CreateItemAsync\r\n**SDK :**\r\nMicrosoft.Azure.Cosmos 3.0.0.1-preview (via nuget)\r\n**Emulator :** \r\nAzure Cosmos DB Emulator 2.1.3.0\r\n\r\n\r\n ```csharp\r\nstring databaseId = \"TodoDatabase\";\r\nstring containerId = \"TodoContainer\";\r\n string partitionKey = \"/partitionKey\";\r\n\r\n// Create new instance of CosmosClient\r\nusing (CosmosClient cosmosClient = new CosmosClient(\"https://localhost:5002\", \"C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==\"))\r\n            {\r\n                // Create new database\r\n                CosmosDatabase database = await cosmosClient.Databases.CreateDatabaseIfNotExistsAsync(databaseId);\r\n\r\n                // Create new container\r\n                CosmosContainer container = await database.Containers.CreateContainerIfNotExistsAsync(containerId, partitionKey);\r\n\r\n                // Add item to container\r\n                var todoItem = new TodoItem()\r\n                {\r\n                    Id = Guid.NewGuid().ToString(),\r\n                    PartitionKey = Guid.NewGuid().ToString(),\r\n                    Task = \"Get started with Azure Cosmos DB!\"\r\n                };\r\n                var todoItemResponse = await container.Items.CreateItemAsync<TodoItem>(todoItem.PartitionKey, todoItem);\r\n            }    \r\n"}}
{"actor":{"display_login":"RockyBalboa2018"}}