Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Issue 3763 Extension : TranscriptLoggerMiddleware logActivity failed: "Converting circular structure to JSON" #3797

Closed

Description

What project is affected?

sample-assistant and sample-skill

What language is this in?
Typescript

We are using the below versions

"botbuilder": "^4.11.0",
"botbuilder-ai": "^4.11.0",
Typescript
Node Js: v11.6.0
Windows 10

What happens?
Getting below error on Every time dialog is end

TranscriptLoggerMiddleware logActivity failed: "Converting circular structure to JSON"
TypeError: Converting circular structure to JSON
at JSON.stringify ()
at AzureBlobTranscriptStore. (D:\Workspace\Ecolab\EVA-IT-TEST\EVA-IT-SKILL\node_modules\botbuilder-azure\lib\azureBlobTranscriptStore.js:65:31)

What were you expecting to happen?
This error shouldn't come.

Can you share any logs, error output, etc.?

TranscriptLoggerMiddleware logActivity failed: "Converting circular structure to JSON"
TypeError: Converting circular structure to JSON
at JSON.stringify ()
at AzureBlobTranscriptStore. (D:\Workspace\Ecolab\EVA-IT-TEST\EVA-IT-SKILL\node_modules\botbuilder-azure\lib\azureBlobTranscriptStore.js:65:31)
at Generator.next ()
at D:\Workspace\Ecolab\EVA-IT-TEST\EVA-IT-SKILL\node_modules\botbuilder-azure\lib\azureBlobTranscriptStore.js:14:71
at new Promise ()
at __awaiter (D:\Workspace\Ecolab\EVA-IT-TEST\EVA-IT-SKILL\node_modules\botbuilder-azure\lib\azureBlobTranscriptStore.js:10:12)
at AzureBlobTranscriptStore.logActivity (D:\Workspace\Ecolab\EVA-IT-TEST\EVA-IT-SKILL\node_modules\botbuilder-azure\lib\azureBlobTranscriptStore.js:60:16)
at TranscriptLoggerMiddleware. (D:\Workspace\Ecolab\EVA-IT-TEST\EVA-IT-SKILL\node_modules\botbuilder-core\lib\transcriptLogger.js:104:54)
at Generator.next ()
at fulfilled (D:\Workspace\Ecolab\EVA-IT-TEST\EVA-IT-SKILL\node_modules\botbuilder-core\lib\transcriptLogger.js:11:58)

Any screenshots or additional context?

We have created an issue with the same description (3763), but due to inactivity, this is been closed.

Meanwhile, we have got one clue, It may be helpful in analyzing the root cause. Below is the sample activity object

{
	text: "Ok, you're signed out.",
	inputHint: 'acceptingInput',
	channelId: 'msteams',
	locale: 'en-US',
	serviceUrl: 'https://smba.trafficmanager.net/amer/',
	conversation: {
		conversationType: 'personal',
		tenantId: 'XXXX',
		id: 'a:XXXXXXdsdd4ExT71NzIYu1lNSFGsrHmEPV4ks1TUCNcnsAeh_XXXXXX-wHHR3USdkBCugRrHfG7qOtHHK-q'
	},
	from: {
		id: '28:XXXX-4c8d-bd6b-XXXX',
		name: 'EVA-DEV'
	},
	recipient: {
		id: '29:1XXXX-AjeWxuDhuwRkag3KpifTNTmzIC4BWph5HDLg-fYo35cQAqak1yCGiOpXXXXXX',
		name: 'Yammanure, Sreekanth Reddy',
		aadObjectId: 'XXX-b078-XXX-a85e-XXXXXXXXXXXXXX',
		role: 'user'
	},
	replyToId: '1620380962526',
	type: 'message',
	speak: "Ok, you're signed out.",
	id: '1620380969094',
	timestamp: 2021-05-07T09:49:29.211Z
}

When I try validating the above JSON, it giving an error at timestamp property. It's causing the issue. The value should be if type string for timestamp property.

Thanks,
Sreekanth (Ecolab)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.Needs TriageNeeds to be triaged for assignmentTeam: KobukThis issue is assigned to the Kobuk team.Type: BugSomething isn't workingcustomer-replied-toIndicates that the team has replied to the issue reported by the customer. Do not delete.customer-reportedIssue is created by anyone that is not a collaborator in the repository.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions