Skip to content
Discussion options

You must be logged in to vote

It looks like that documentation is incorrect. I also get a 404 when I call that endpoint. However, when I run bin/pulsar-admin topics unsubscribe -s sub test, I noticed that the broker logs a different endpoint:

23:49:23.569 [BookKeeperClientWorker-OrderedExecutor-0-0] INFO org.eclipse.jetty.server.RequestLog - 127.0.0.1 - - [01/Sep/2022:23:49:23 -0500] "PUT /admin/v2/persistent/public/default/test/subscription/sub HTTP/1.1" 204 0 "-" "Pulsar-Java-v2.7.2" 78

The correct endpoint includes /persistent. If you try /admin/v2/persistent/{tenant}/{namespace}/{topic}/subscription/{subName}, it should work.

Would you mind creating an issue in the project to get the documentation fixed? Thanks!

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@trevordowdle
Comment options

Comment options

You must be logged in to vote
1 reply
@michaeljmarshall
Comment options

Comment options

You must be logged in to vote
1 reply
@trevordowdle
Comment options

Answer selected by michaeljmarshall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants