Ykworm opened a new issue, #758:
URL: https://github.com/apache/rocketmq-clients/issues/758

   ### Before Creating the Bug Report
   
   - [X] I found a bug, not just asking a question, which should be created in 
[GitHub Discussions](https://github.com/apache/rocketmq-clients/discussions).
   
   - [X] I have searched the [GitHub 
Issues](https://github.com/apache/rocketmq-clients/issues) and [GitHub 
Discussions](https://github.com/apache/rocketmq-clients/discussions)  of this 
repository and believe that this is not a duplicate.
   
   - [X] I have confirmed that this bug belongs to the current repository, not 
other repositories of RocketMQ.
   
   
   ### Programming Language of the Client
   
   C#
   
   ### Runtime Platform Environment
   
   dotnet 6
   
   ### RocketMQ Version of the Client/Server
   
   Rocketmq 5.1.2 , rocketmq client version 5.1.0 , windows server 2019
   
   ### Run or Compiler Version
   
   _No response_
   
   ### Describe the Bug
   
   **Error:**
      at 
Org.Apache.Rocketmq.ClientLoggerInterceptor.HandleResponse[TResponse](Task`1 t)
      at Org.Apache.Rocketmq.RpcClient.QueryRoute(Metadata metadata, 
QueryRouteRequest request, TimeSpan timeout)
      at Org.Apache.Rocketmq.ClientManager.QueryRoute(Endpoints endpoints, 
QueryRouteRequest request, TimeSpan timeout)
      at Org.Apache.Rocketmq.Client.FetchTopicRoute0(String topic)
      at Org.Apache.Rocketmq.Client.FetchTopicRoute(String topic)
      at Org.Apache.Rocketmq.Client.Start()
      at Org.Apache.Rocketmq.Producer.Start()
      at Org.Apache.Rocketmq.Producer.Builder.Build()
      at Program.<<Main>$>g__TestMq|0_0() in 
C:\data\pccwcode\dotnet\be-pdf-conversion\windowsservice\RocketmqTester\Program.cs:line
 36
   Status(StatusCode="DeadlineExceeded", Detail="")
   
   **mycode line 36: var producer = await new Producer.Builder()**
   
   ` 
           var clientConfig = new ClientConfig.Builder()
                        .SetEndpoints(endpoints)
                        .Build();
       const string topic = "lamtest";
   
       var producer = await new 
Producer.Builder().SetClientConfig(clientConfig).SetTopics(topic).Build();
   
       // 创建 Producer 实例
       //Task<Producer> producer = new 
Producer.Builder().SetClientConfig(clientConfig).SetTopics( topic).Build();
   
       var bytes = System.Text.Encoding.UTF8.GetBytes("hello fred");
   
       var message = new Org.Apache.Rocketmq.Message.Builder()
           .SetTopic(topic)
           .SetBody(bytes)
           .Build();
   
       //producer.Start();
   
       var sendReceipt = await producer.Send(message);
       Console.WriteLine($"Send message successfully, 
messageId={sendReceipt.MessageId}");
   
   `
   
   
   ### Steps to Reproduce
   
   following the code in Describe the Bug
   
   ### What Did You Expect to See?
   
   give me the details about the problem
   
   ### What Did You See Instead?
   
   just the err:  "DeadlineExceeded", 
   
   ### Additional Context
   
   no


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to