Bug Description
I am trying to use the ExpressAdapter sample to manage my own express server and use teams sdk but when i try to run it , it throws http headers already set
Steps to Reproduce
- just run the sample code provided and it throws error if you access http:
Expected Behavior
all http calls should return with a 200 status code
Actual Behavior
Error: Cannot set headers after they are sent to the client
at ServerResponse.setHeader (node:_http_outgoing:655:11)
at Function.handle (C:\projects\agent-poc\node_modules\express\lib\application.js:163:9)
at Server.app (C:\projects\agent-poc\node_modules\express\lib\express.js:38:9)
at Server.emit (node:events:536:35)
at Server.emit (node:domain:489:12)
at parserOnIncoming (node:_http_server:1141:12)
at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17) {
code: 'ERR_HTTP_HEADERS_SENT'
}
SDK Version
2.0.6
Node.js Version
20.20.0
Additional Context
No response
Bug Description
I am trying to use the ExpressAdapter sample to manage my own express server and use teams sdk but when i try to run it , it throws http headers already set
Steps to Reproduce
Expected Behavior
all http calls should return with a 200 status code
Actual Behavior
Error: Cannot set headers after they are sent to the client
at ServerResponse.setHeader (node:_http_outgoing:655:11)
at Function.handle (C:\projects\agent-poc\node_modules\express\lib\application.js:163:9)
at Server.app (C:\projects\agent-poc\node_modules\express\lib\express.js:38:9)
at Server.emit (node:events:536:35)
at Server.emit (node:domain:489:12)
at parserOnIncoming (node:_http_server:1141:12)
at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17) {
code: 'ERR_HTTP_HEADERS_SENT'
}
SDK Version
2.0.6
Node.js Version
20.20.0
Additional Context
No response