question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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>
  1. 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);
  1. replace
const bot = new EchoBot();

by

const bot = new EchoBot(myTranscriptStorage);
  1. 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);
  1. 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:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
anusharrcommented, Sep 14, 2021

@HesselWellema, apologize for the delay in response. Let me attempt a repro on my end and update the thread accordingly with my findings.

0reactions
anusharrcommented, Sep 28, 2021

@HesselWellema, can you share a screenshot of your recent blob transcript json entry along with the listTranscript screenshot after removing the duplicates?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found