ShuKe-code opened a new issue, #1452:
URL: https://github.com/apache/pulsar-client-go/issues/1452

   #### Expected behavior
   The requirement is to retrieve the ID of the next message to be consumed for 
a given subscriber.
   admin.Subscriptions().PeekMessages(topicName,subscription,1)
   get 1 message from pulsar broker
   
   Tell us what should happen
   
   #### Actual behavior
   net/http: HTTP/1.x transport connection broken: malformed MIME header line: 
X-Pulsar-Partition-Key
   Tell us what happens instead
   
   #### Steps to reproduce
   
   How can we reproduce the issue
   Tests conducted using the master branch of the pulsar-client-go repository 
revealed the following error when using PeekMessages to retrieve messages: 
"net/http: HTTP/1.x transport connection broken: malformed MIME header line: 
X-Pulsar-Partition-Key:  L". This is because in Go versions 1.20 and above, the 
client directly classifies HTTP Response Headers as malformed during the MIME 
Header parsing phase.
   
   invalid key 
:\u0000\u0000\u0000\u0000\u001d¥L\u0000\u0000\u0000\u0000\u0000\u0006��
   
   #### System configuration
   **Pulsar version**: 3.0.11
   pulsar-client-go:master
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to