botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[Direct Line API] Set Private ConversationData not working as expected - returns 500 internal server error

Open SatyaPavanKumar opened this issue 8 years ago • 1 comments

Bot Info

SDK Platform: C# .NET Bot Builder REST API Active Channels: Direct Line

Issue Description

I want to set private conversation data for the specified user within the context of the specified conversation on the specified channel. For this, I am using REST API to set private data to bot as mentioned in REST API Reference . But whenever we make this REST API request for Direct Line channel, it returns 500 internal server error in response. Check below details for REST request,

Request: https://directline.botframework.com/v3/directline/conversations/{conversationid}/users/{userid}

MethodType: POST

Headers: Authorization: Bearer Content-Type: application/json

Body: Body JSON payload (raw): {"data":{"PrivateData":"UserPrivateDataforSpecifiedChannel"}}

Response: Status: 500 internal server error

What am i doing wrong?

SatyaPavanKumar avatar May 04 '18 10:05 SatyaPavanKumar

@SatyaPavanKumar the directline endpoints don't have anything to do with state, which can be found at state.botframework.com. However, users aren't supposed to be using the default state service found at state.botframework.com and should instead be implementing their own custom state store.

Hope this helps.

stevengum avatar Jun 25 '18 23:06 stevengum