-
Notifications
You must be signed in to change notification settings - Fork 779
Closed
Description
Expected Behavior
Save to persist state with CosmosDB setup using the following CURL as mentioned in the doc.
curl -X POST http://localhost:3500/v1.0/state -H "Content-Type: application/json" -d '[ { "key": "nihilus", "value": "darth" } ]'
Actual Behavior
Unable to save to persist state with CosmosDB setup.
Following the documentation, when using CURL as following
curl -X POST http://localhost:3500/v1.0/state -H "Content-Type: application/json" -d '[ { "key": "nihilus", "value": "darth" } ]'
It returns
{
"errorCode": "ERR_SAVE_REQUEST",
"message": "BadRequest, Message: {\"Errors\":[\"PartitionKey extracted from document doesn't match the one specified in the header\"]}\r\nActivityId: 3742fbb9-7aa6-4ab7-aa17-84bafa927e58, Request URI: /apps/ad2e8bf3-dc98-4198-91d0-bac5753d314e/services/980cbd10-15a8-4aa0-9e7f-6dddb1fa2f7a/partitions/5344132a-3102-4d19-a400-b81f47fa132b/replicas/132167064011059557p/, RequestStats: \r\nRequestStartTime: 2019-10-28T11:16:25.7756255Z, RequestEndTime: 2019-10-28T11:16:25.7856312Z, Number of regions attempted:1\r\nResponseTime: 2019-10-28T11:16:25.7856312Z, StoreResult: StorePhysicalAddress: rntbd://cdb-ms-prod-southeastasia1-fd2.documents.azure.com:16762/apps/ad2e8bf3-dc98-4198-91d0-bac5753d314e/services/980cbd10-15a8-4aa0-9e7f-6dddb1fa2f7a/partitions/5344132a-3102-4d19-a400-b81f47fa132b/replicas/132167064011059557p/, LSN: 4, GlobalCommittedLsn: 4, PartitionKeyRangeId: 0, IsValid: True, StatusCode: 400, SubStatusCode: 1001, RequestCharge: 1.24, ItemLSN: -1, SessionToken: 4, UsingLocalLSN: False, TransportException: null, ResourceType: Document, OperationType: Upsert\r\n, SDK: Microsoft.Azure.Documents.Common/2.7.0"
}
Steps to Reproduce the Problem
using CURL as following
curl -X POST http://localhost:3500/v1.0/state -H "Content-Type: application/json" -d '[ { "key": "nihilus", "value": "darth" } ]'
Metadata
Metadata
Assignees
Labels
No labels