我在 restxq 多个并行的 post 请求上遇到问题,put。当来自 Web 应用程序的请求作为异步批量请求时(大约超过 5 个)。我正在使用存在 db 5.1.0 或 5.1.1 我通过 angular forkjoin 发送请求,因为我想并行提交超过 20 或 50 个请求
declare
%rest:path("/docs/{$doc-id}")
%rest:PUT("{$body}")
%rest:consumes("application/json")
%output:method("json")
function doc-rx:update-docs($doc-id as xs:string, $body) {
try{
let $request:= parse-json(util:binary-to-string( $body))
return
<result>Success</result>
}catch * {
<error>Caught error {$err:description}</error>
}
};
某些请求将失败并显示以下消息,某些请求已取消
失败消息:底层 InputStream 已关闭。无法编码字符串值:底层 InputStream 已关闭某些请求已取消。
请告知我该如何解决这个问题。