0
我正在運行一個Node.js服務,它使用node-soap將另一個服務的SOAP響應轉換爲JSON,然後返回給調用者。它也適用於其他方向,將JSON轉換爲Soap並將其提供給服務。TypeError:Object#<ServerResponse>沒有方法'en'
但我打電話了幾個服務時收到以下錯誤:
TypeError: Object #<ServerResponse> has no method 'en'
at C:\...\soap.js:47:11
at C:\...\node_modules\soap\lib\client.js:84:13
at C:\...\node_modules\soap\lib\client.js:150:24
at Request._callback (C:\...\node_modules\soap\lib\http.js:48:13)
at Request.self.callback (C:\...\node_modules\soap\node_modules\request\index.js:148:22)
at Request.EventEmitter.emit (events.js:98:17)
at Request.<anonymous> (C:\...\node_modules\soap\node_modules\request\index.js:876:14)
at Request.EventEmitter.emit (events.js:117:20)
at IncomingMessage.<anonymous> (C:\...\node_modules\soap\node_modules\request\index.js:827:12)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
我一直無法找到任何人發佈了同樣的錯誤,也沒有找出這可能是什麼。
所有幫助表示讚賞。
你知道,你的權利。我完全將該行讀爲.on,並開始查看我正在使用的庫。 – Hrafn