gpt4 book ai didi

node.js - 数据大小限制。错误: Received message larger than max

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

我正在运行一个 Node 脚本,该脚本连接到业务网络并向网络添加 Assets 。
我收到以下错误。

Error: Error trying invoke business network. Error: No valid responses from any peers.
Response from attempted peer comms was an error: Error: Received message larger than max (5153800 vs. 4194304)

at _initializeChannel.then.then.then.then.catch (/home/sneha/node-app-v1/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:916:34)
at <anonymous>

我关注了这个已解决的问题:https://jira.hyperledger.org/browse/FAB-3301并更改了各个 Node 模块中的remote.js文件[composer-playground、composer-client、composer-admin、composer-common等..]

即使更改后,我也无法通过 Node 脚本添加 Assets 。它抛出同样的错误。

如果我通过 Composer Playground 添​​加 Assets ,它会成功添加 Assets ,但随后我无法访问网络 [在 Composer Playground 中],它会抛出此错误

Error: No connection found with ID 2db7d182-8856-44d5-a9d8-5f7178726423

如何解决这两个错误?
如何将限制设置为无限?

我正在使用:
Node 版本:v8.9.4
Composer版本:v0.16.5

最佳答案

要更改 grpc 消息限制,您需要创建/更新您的连接配置文件。请参阅https://hyperledger.github.io/composer/reference/connectionprofile有关连接配置文件的信息。找到 id 的无连接配置文件通常意味着您已重新启动 Playground,但未重新启动与 Playground 的交互。建议关闭 Playground 选项卡并创建新选项卡以在其中使用 Playground。

关于node.js - 数据大小限制。错误: Received message larger than max,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49300633/

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