botbuilder-utils-js icon indicating copy to clipboard operation
botbuilder-utils-js copied to clipboard

Required Header authorization is missing, TranscriptLoggerMiddleware logActivity failed

Open anishjaindev opened this issue 6 years ago • 0 comments

Hello,

I am trying to do transcript logging on Echo Bot in Cosmos DB, but it is giving the below error. Am I missing some configuration ?

TranscriptLoggerMiddleware logActivity failed: "{"code":"Unauthorized","message":"Required Header authorization is missing. Ensure a valid Authorization token is passed.\r\nActivityId: a4d5a91f-b1cf-499f-ae48-ecbb65f89c6c, Microsoft.Azure.Documents.Common/2.5.1"}" Error: {"code":"Unauthorized","message":"Required Header authorization is missing. Ensure a valid Authorization token is passed.\r\nActivityId: a4d5a91f-b1cf-499f-ae48-ecbb65f89c6c, Microsoft.Azure.Documents.Common/2.5.1"} at created (D:\Learning\Projects\msbot-samples\botbuilder-utils-js\packages\botbuilder-transcript-cosmosdb\dist\cosmosdb.js:82:16) at client.createDatabase (D:\Learning\Projects\msbot-samples\botbuilder-utils-js\packages\botbuilder-transcript-cosmosdb\dist\cosmosdb.js:13:48) at D:\ANISHDATA\Learning\Azure Bots\botbuilder-samples\samples\javascript_nodejs\02.echo-bot\node_modules\documentdb\lib\documentclient.js:2200:21 at D:\ANISHDATA\Learning\Azure Bots\botbuilder-samples\samples\javascript_nodejs\02.echo-bot\node_modules\documentdb\lib\retryUtility.js:97:32 at Base.defineClass.shouldRetry.shouldRetry (D:\ANISHDATA\Learning\Azure Bots\botbuilder-samples\samples\javascript_nodejs\02.echo-bot\node_modules\documentdb\lib\defaultRetryPolicy.js:98:20) at D:\ANISHDATA\Learning\Azure Bots\botbuilder-samples\samples\javascript_nodejs\02.echo-bot\node_modules\documentdb\lib\retryUtility.js:92:29 at onComplete (D:\ANISHDATA\Learning\Azure Bots\botbuilder-samples\samples\javascript_nodejs\02.echo-bot\node_modules\documentdb\lib\request.js:98:9) at IncomingMessage. (D:\ANISHDATA\Learning\Azure Bots\botbuilder-samples\samples\javascript_nodejs\02.echo-bot\node_modules\documentdb\lib\request.js:120:24) at IncomingMessage.emit (events.js:194:15) at IncomingMessage.EventEmitter.emit (domain.js:441:20)

anishjaindev avatar Sep 28 '19 15:09 anishjaindev