BotBuilder-Samples icon indicating copy to clipboard operation
BotBuilder-Samples copied to clipboard

Error initializing DirectLine client TypeError: Cannot read property 'add' of undefined

Open lingwangyan opened this issue 8 years ago • 3 comments

I just change the var directLineSecret = 'MySecretKey'; and install in local repository by following command: npm install swagger-client npm install -g open npm install --save request npm install --save request-promise BotBuilder main repository (https://github.com/Microsoft/BotBuilder-Samples/tree/master/Node/core-DirectLine)

URL of Code Sample

(https://github.com/Microsoft/BotBuilder-Samples/blob/master/Node/core-DirectLineWebSockets/DirectLineClient/app.js#L32-L45)

Problem Description

Error initializing DirectLine client TypeError: Cannot read property 'add' of un
defined

Unhandled rejection TypeError: Cannot read property 'Conversations' of undefined

lingwangyan avatar Mar 22 '18 08:03 lingwangyan

Probably the same issue #191

MilkoKunev avatar Mar 22 '18 14:03 MilkoKunev

@MilkoKunev i run the command that he provided.. but still same error

lingwangyan avatar Mar 22 '18 23:03 lingwangyan

hi there, sorry for responding on a closed issue, the version of swagger-client that works is "2.1.18".

Rigo85 avatar May 07 '18 21:05 Rigo85