Skip to content

could not get response from bot and it is giving error as cant set headers after they are sent. #32

@ajaykumar1452

Description

@ajaykumar1452

please find the Error message below in azure

Error: Can't set headers after they are sent.
at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:356:11)
at applyHeaders (D:\home\site\wwwroot\node_modules\cors\lib\index.js:153:15)
at applyHeaders (D:\home\site\wwwroot\node_modules\cors\lib\index.js:149:11)
at applyHeaders (D:\home\site\wwwroot\node_modules\cors\lib\index.js:149:11)
at cors (D:\home\site\wwwroot\node_modules\cors\lib\index.js:184:7)
at D:\home\site\wwwroot\node_modules\cors\lib\index.js:221:17
at originCallback (D:\home\site\wwwroot\node_modules\cors\lib\index.js:211:15)
at D:\home\site\wwwroot\node_modules\cors\lib\index.js:216:13
at optionsCallback (D:\home\site\wwwroot\node_modules\cors\lib\index.js:196:9)
at corsMiddleware (D:\home\site\wwwroot\node_modules\cors\lib\index.js:201:7)
at Layer.handle [as handle_request] (D:\home\site\wwwroot\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (D:\home\site\wwwroot\node_modules\express\lib\router\index.js:317:13)
at D:\home\site\wwwroot\node_modules\express\lib\router\index.js:284:7
at Function.process_params (D:\home\site\wwwroot\node_modules\express\lib\router\index.js:335:12)
at next (D:\home\site\wwwroot\node_modules\express\lib\router\index.js:275:10)
at next (D:\home\site\wwwroot\node_modules\express\lib\router\route.js:127:14)
at D:\home\site\wwwroot\node_modules\botbuilder\lib\bots\ChatConnector.js:481:21
at ChatConnector.onDispatchEvents (D:\home\site\wwwroot\node_modules\botbuilder\lib\bots\ChatConnector.js:458:17)
at ChatConnector.dispatch (D:\home\site\wwwroot\node_modules\botbuilder\lib\bots\ChatConnector.js:466:18)
at D:\home\site\wwwroot\node_modules\botbuilder\lib\bots\ChatConnector.js:149:27
at OpenIdMetadata.getKey (D:\home\site\wwwroot\node_modules\botbuilder\lib\bots\OpenIdMetadata.js:26:13)
at ChatConnector.verifyBotFramework (D:\home\site\wwwroot\node_modules\botbuilder\lib\bots\ChatConnector.js:123:28)
The Bot State API is deprecated. Please refer to https://aka.ms/I6swrh for details on how to replace with your own storage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions