You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2023/03/05 03:31:38 UTC

[GitHub] [pulsar] laglangyue created a discussion: [Java-client] Invalid hostname : pulsar_e2e:6650,but curl http://pulsar_e2e:8080 is ok

GitHub user laglangyue created a discussion: [Java-client] Invalid hostname : pulsar_e2e:6650,but curl http://pulsar_e2e:8080 is ok

![image](https://user-images.githubusercontent.com/35491928/222940168-0db25630-c602-4ce7-baf6-92a8151b5653.png)


![image](https://user-images.githubusercontent.com/35491928/222940184-1203fe80-341f-4c00-a84b-a9a5de5948aa.png)


GitHub link: https://github.com/apache/pulsar/discussions/19714

----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] laglangyue added a comment to the discussion: [Java-client] Invalid hostname : pulsar_e2e:6650,but curl http://pulsar_e2e:8080 is ok

Posted by GitBox <gi...@apache.org>.
GitHub user laglangyue added a comment to the discussion: [Java-client] Invalid hostname : pulsar_e2e:6650,but curl http://pulsar_e2e:8080 is ok

test code
```java
 PulsarClient client = PulsarClient.builder()
            .serviceUrl("pulsar://pulsar_e2e:6650").build();
        Consumer<String> subscribe = client.newConsumer(Schema.STRING)
            .topic("topic-it")
            .subscriptionName("hello-world")
            .subscribe();
        Message<String> receive = subscribe.receive();
        System.out.println(receive.getValue());
```

GitHub link: https://github.com/apache/pulsar/discussions/19714#discussioncomment-5205063

----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] laglangyue added a comment to the discussion: [Java-client] Invalid hostname : pulsar_e2e:6650,but curl http://pulsar_e2e:8080 is ok

Posted by GitBox <gi...@apache.org>.
GitHub user laglangyue added a comment to the discussion: [Java-client] Invalid hostname : pulsar_e2e:6650,but curl http://pulsar_e2e:8080 is ok

I solve the question,`_` in hostname is invalid

GitHub link: https://github.com/apache/pulsar/discussions/19714#discussioncomment-5205184

----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org