exist-db - Exist-db 并行请求(批量请求)在现有数据库 restxq(发布、放置)上失败
问题描述
我在 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 已关闭某些请求已取消。
请告知我该如何解决这个问题。
解决方案
推荐阅读
- mysql - JPA 实体未保存在数据库中
- gitlab - Gitlab:构建后如何在后续作业中使用工件
- c - 尝试从 C 调用汇编函数时出现分段错误(核心转储)
- django - Django 2.2 - 使用 assertQuerySetEqual 测试响应上下文失败
- javascript - 禁用单击按钮时的蓝色描边效果
- kubernetes - Kubernetes 入口返回 404
- latex - Latex Tikz 代码鱼骨石川援助
- rest - 为控制器类编写负单元测试用例:springboot
- spring-boot - Docker 自定义网络或 network_mode = host 我应该选择哪一个?
- typescript - React Native Text 不受容器视图限制的限制