listTranscripts (BlobsTranscriptStore) showing duplicates
See original GitHub issue"dependencies": {
"botbuilder-azure": "^4.14.1",
"botbuilder-azure-blobs": "^4.14.1-preview",
"botbuilder-core": "~4.14.0",
"dotenv": "^8.2.0",
"path": "^0.12.7",
"readline": "^1.3.0"
},
BlobsTranscriptStore.listTranscripts results in a list showing the conversation ID for each occurence of an activity in that conversation.
To reproduce: .1 clone the 01. console-log-echo sample locally .2 NPM install .3 NPM install ‘botbuilder-azure-blobs’ .4 add a .ENV file with
AZURE_STORAGE_CONNECTION_STRING=<Valid connection string>
STATE_BLOB_CONTAINER_NAME=<some name for the container>
- add the following code to index.js
const { BlobsTranscriptStore } = require('botbuilder-azure-blobs');
const myTranscriptStorage = new BlobsTranscriptStore(process.env.AZURE_STORAGE_CONNECTION_STRING, process.env.TRANSCRIPT_BLOB_CONTAINER_NAME);
var transcriptMiddleware = new TranscriptLoggerMiddleware(myTranscriptStorage);
adapter.use(transcriptMiddleware);
- replace
const bot = new EchoBot();
by
const bot = new EchoBot(myTranscriptStorage);
- Add a constructot to bot.js
constructor(myTranscriptStorage) {
this.myTranscriptStorage = myTranscriptStorage;
}
8 In the else statement of the onTurn handler add
const conversationList = await this.myTranscriptStorage.listTranscripts('console');
console.log(conversationList);
- Start index.js
You will see that every time you type a new message in the console (in the same conversation), the list with duplicatie conversation id-'s gets longer.
Expected behavior
I would expect a list with conversation ID’s without duplicates
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
transcriptLogger creating duplicate logs for the Facebook ...
I have implemented transcripLogger in my chatbot and I have noticed that I am getting duplicate trace logs for the Facebook channel. This...
Read more >How to Remove Duplicate Records in Azure Data factory
How to Remove Duplicate Records in Azure Data factory | ADF Interview Questions & Answers 2022, In this video, we will learn about...
Read more >How to remove duplicate cells from a Google spreadsheet
In this video, I go over step-by-step how to remove duplicates from Google sheets.
Read more >Unable to log user state information to transcript - Stack Overflow
I am using TranscriptLoggerMiddleware and CosmosDB to log my chatbot transcripts. We are trying to capture the user state information (user name ...
Read more >biomaRt- incorrect number of transcripts - Bioconductor Forum
By default biomaRt will retrieve only unique > results, > sometimes when you query over the web results are duplicated. To > remove...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@HesselWellema, apologize for the delay in response. Let me attempt a repro on my end and update the thread accordingly with my findings.
@HesselWellema, can you share a screenshot of your recent blob transcript json entry along with the listTranscript screenshot after removing the duplicates?