Ms bot builder bot code is throwing that the " Bot State API is deprecated ,Please refer to https://aka.ms/I6swrh for details on how to replace with your own storage."
I followed the documentation and its states that we can implement a custom state client using data storage platform of your choice instead of using Azure service . Can someone guide or provide some information in that direction how to achieve custom state client using local data storage.
So with this change the Microsoft web based connector use will be just a web based platform for conversion of Platform specific request to bot framework specific format and vice versa and state management will be handled locally .
HI @Aashish-Amber
By "local data storage" are you referring to window.localStorage?
@EricDahlvang In-memory or local file storage. Local storage is browser specific feature and doesn't work with server-side apps. The window object also does not exist on server-side Node.js applications such as bots.
@nwhitmont I realize that. My question is if they mean local storage, as in server-side. Or, if they mean local storage as in "client side browser". Either is possible for the WebChat channel, but browser local storage would not be possible for other channels. I appreciate your feedback, but I don't think you have enough information provide an answer for @Aashish-Amber
What's volume of store data for Skype bot by default?
I am getting this same error "The Bot State API is deprecated." in vs code, using the latest bot builder version 3.12.0. It runs well in Azure, but when debugging locally I get this error all the time and my code is not executed.
I am getting the same error, I tried to avoid it with:
let bot = new builder.UniversalBot(connector, {
persistUserData: false,
persistConversationData: false,
autoBatchDelay: 0
});
But it doesn't work, I keep receiving this message :-(
We do not use botbuilder storage, we have dedicated steps to store/retrieve data for a given user.
After checking the code I was able to fix this by manually setting the memory storage:
var bot = new builder.UniversalBot(connector, {
storage: new builder.MemoryBotStorage()
});
There seems to be a bug (?) when setting the default connector in UniversalBot.js line 89:
var asStorage = connector;
if (!this.settings.storage &&
typeof asStorage.getData === 'function' &&
typeof asStorage.saveData === 'function') {
this.settings.storage = asStorage;
}
This uses the connector getData and setData which show the deprecated message.
WARNING: This storage is volatile and will not be preserved between bot runs.
Check MemoryBotStorage implementation for help on making your own storage class.
This broke our chatbot with hundreds of daily users.
As MSFT Botframework developers, how can we get notified about these changes?
Most helpful comment
This broke our chatbot with hundreds of daily users.
As MSFT Botframework developers, how can we get notified about these changes?