0

我在 restxq 多个并行的 post 请求上遇到问题,put。当来自 Web 应用程序的请求作为异步批量请求时(大约超过 5 个)。

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 已关闭某些请求已取消。

请告知我该如何解决这个问题。

4

0 回答 0