BotBuilderCommunity / botbuilder-community-dotnet

Part of the Bot Builder Community Project. Repository for extensions for the Bot Builder .NET SDK, including middleware, dialogs, recognizers and more.
MIT License
278 stars 170 forks source link

Write an item to storage: "storage provider could not be found in turn state." #512

Open dweeb1937 opened 1 year ago

dweeb1937 commented 1 year ago

I'd like to use Bot.Builder.Community.Components.Storage to write a specific piece of data as a blob to Azure blob storage. But when I install this package to Bot Framework Composer it throws the error "WriteStorageItem: storage provider could not be found in turn state." I have tried the following in appsettings.json, under runtime settings:

 "blobStorage": {
        "connectionString": "DefaultEndpointsProtocol=https;AccountName=myaccountname;AccountKey=myaccountkey==;EndpointSuffix=core.windows.net",
        "container": "storage"
      },

and

      "BlobConnectionString": "DefaultEndpointsProtocol=https;AccountName=myaccountname;AccountKey=myaccountkey==;EndpointSuffix=core.windows.net",
      "BlobContainerName": "storage"

and

      "storage": "blobStorage",
      "telemetry": {
        "logActivities": true,
        "logPersonalInformation": false,
        "options": {
          "connectionString": "DefaultEndpointsProtocol=https;AccountName=myaccountname;AccountKey=myaccountkey==;EndpointSuffix=core.windows.net",
          "containerName": "storage"
        }
      },

But they all have this same error message. I note that adding the following there is successful in automatically storing blobs of bot state but doesn't allow me to construct and send a specific blob. Any advice gratefully received.

      "blobTranscript": {
        "connectionString": "DefaultEndpointsProtocol=https;AccountName=myaccountname;AccountKey=myaccountkey==;EndpointSuffix=core.windows.net",
        "containerName": "transcripts"
      }

My BFC context is:

Version:  2.1.2
Electron: 8.2.4
Chrome: 80.0.3987.165
NodeJS: 12.13.0
V8: 8.0.426.27-electron.0