gpt4 book ai didi

node.js - Docker/Node 负载下出现 ESOCKETTIMEDOUT 或 ECONNREFUSED 错误的原因是什么?

转载 作者:太空宇宙 更新时间:2023-11-04 03:23:19 26 4
gpt4 key购买 nike

我们在 docker 上运行的 Node API 在负载下会出现 ESOCKETTIMEDOUT 或 ECONNREFUSED 错误。当我们从 Node API 调用 .NET API 时,就会发生这种情况。

{   [-] 
_anonFuncCount: 3
_body: {"events":[{"serviceCategoryCode":{"codeValue":"core"},"eventNameCode":{"codeValue":"clock.punch","shortName":"Clock Punch"},"data":{"eventContext":{"associateOID":"","workAssignmentId":""},"transform":{"clockEntry":{"deviceDateTime":"2017-12-10T18:21:46-04:00","entryDateTime":"2017-12-10T18:21:46-04:00","actionCode":{"codeValue":"clockout","shortName":"clockout"},"laborAllocations":[]}}}}]}
_cacheURL: /api/offlinePunch
_clen: 424
_consuming: true
_contentType: application/json
_currentHandler: handler-2
_currentRoute: postapiofflinepunch100
_dtraceId: 5276
_dumped: false
_events: { [+]
}
_eventsCount: 4
_matchedVersion: 1.0.0
_negotiator: { [+]
}
_parsedBody: true
_readBody: true
_readableState: { [+]
}
_time: 1512958462607
_timerMap: { [+]
}
_url: { [+]
}
_version: \x7e1
body: { [+]
}
client: ~socket
complete: true
connection: ~socket
context: ~params
domain: null
headers: { [+]
}
httpVersion: 1.1
httpVersionMajor: 1
httpVersionMinor: 1
log: ~socket~_httpMessage~log
method: POST
params: { [+]
}
query: { [+]
}
rawBody: {"events":[{"serviceCategoryCode":{"codeValue":"core"},"eventNameCode":{"codeValue":"clock.punch","shortName":"Clock Punch"},"data":{"eventContext":{"associateOID":"","workAssignmentId":""},"transform":{"clockEntry":{"deviceDateTime":"2017-12-10T18:21:46-04:00","entryDateTime":"2017-12-10T18:21:46-04:00","actionCode":{"codeValue":"clockout","shortName":"clockout"},"laborAllocations":[]}}}}]}
rawHeaders: [ [+]
]
rawTrailers: [ [+]
]
readable: false
route: { [+]
}
serverName: time-clocking-api
socket: { [+]
}
statusCode: null
statusMessage: null
timers: [ [+]
]
trailers: { [+]
}
upgrade: false
url: /api/offlinePunch
uuid: f008be5d-ee11-4e1e-8ae4-afa47dc5e587
}

最佳答案

这很可能是由于同一问题 here 。另外,here很好地解释了 Node 中发生的事情。您可能必须在 Docker 容器中设置 UV_THREADPOOL_SIZE。

关于node.js - Docker/Node 负载下出现 ESOCKETTIMEDOUT 或 ECONNREFUSED 错误的原因是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47764703/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com