Skip to content

AMOP广播普通消息日志提示错误 #880

Open

Description

@13813385093

JDK版本 2.9.3

<dependency>
	<groupId>org.fisco-bcos.java-sdk</groupId>
	<artifactId>fisco-bcos-java-sdk</artifactId>
	<version>2.9.3</version>
</dependency>

通过广播发送消息

public void sendNormalMsg(String topic, String msg) {
	Amop amop = bcosSDK.getAmop();
	AmopMsgOut msgOut = new AmopMsgOut();
	msgOut.setTopic(topic);
	msgOut.setType(TopicType.NORMAL_TOPIC);
	msgOut.setContent(msg.getBytes());
	amop.broadcastAmopMsg(msgOut);
}

发出的消息,其它节点可以正常接收到,但是发送方会提示timeout

2024-02-03 16:59:05.039 [channelProcessor] ERROR org.fisco.bcos.sdk.amop.topic.AmopMsgHandler - can not found response callback, timeout:[...]

这个错误的原因是什么?

Activity

  1. LucasLi1024 commented on Feb 21, 2024

    @LucasLi1024
    Contributor

    you can set timeout and increase the timeout period

  2. 13813385093 commented on Feb 21, 2024

    @13813385093
    Author

    默认的timeout=5000,我也尝试设置过更大的超时时间。依然会提示这个错误。
    我想专门说明的是:我发送的是一个广播消息,而amop的广播消息是不需要设置应答回调函数的。目前的现象是,我从一个节点发送的广播消息,其它几个节点都可以正常收到并处理。但是在发送节点依然会记录一条这样的错误日志。

  3. zflzqy commented on Mar 21, 2024

    @zflzqy

    我看了。广播发送的类型是53,但是实际接收的类型是49,不知道为啥

  4. zflzqy commented on Apr 21, 2025

    @zflzqy

    没人解决这个issue吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions