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 2022/10/11 18:08:43 UTC
[GitHub] [pulsar] Addyvan opened a new issue, #18011: Topic metadata unable to be updated - Error 405 Method not Allowed
Addyvan opened a new issue, #18011:
URL: https://github.com/apache/pulsar/issues/18011
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
### Version
2.10.1
### Minimal reproduce step
I'm running a python script:
```python
import requests
properties = { "test": "test" }
headers={ 'Content-Type': 'application/json' }
resp = requests.put(
f"{PULSAR_ADMIN_ENDPOINT}/admin/v2/persistent/{tenant}/{namespace}/{topic}/properties",
data=properties,
headers=headers
)
print(resp)
print(resp.reason)
```
Response:
```
<Response [405]>
Method Not Allowed
```
This should be the equivalent curl command:
```bash
curl -L http://<ENDPOINT>:8080/admin/v2/persistent/<tenant>/<namespace>/<topic>/properties -X PUT -H 'Content-Type: application/json' -d '{"test":"test"}'
```
### What did you expect to see?
Response code 200 or 204 with the topic's properties having been updated.
### What did you see instead?
Response code 405 with the topic's properties remaining the same.
### 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
[GitHub] [pulsar] mattisonchao closed issue #18011: Topic metadata unable to be updated using the admin REST API - Error 405 Method not Allowed
Posted by GitBox <gi...@apache.org>.
mattisonchao closed issue #18011: Topic metadata unable to be updated using the admin REST API - Error 405 Method not Allowed
URL: https://github.com/apache/pulsar/issues/18011
--
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
[GitHub] [pulsar] Technoboy- commented on issue #18011: Topic metadata unable to be updated using the admin REST API - Error 405 Method not Allowed
Posted by GitBox <gi...@apache.org>.
Technoboy- commented on issue #18011:
URL: https://github.com/apache/pulsar/issues/18011#issuecomment-1275774051
`curl -L http://<ENDPOINT>:8080/admin/v2/persistent/<tenant>/<namespace>/<topic>/properties -X PUT -H 'Content-Type: application/json' -d '{"test":"test"}'`
The above command is working for me in my local.
--
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
[GitHub] [pulsar] Addyvan commented on issue #18011: Topic metadata unable to be updated using the admin REST API - Error 405 Method not Allowed
Posted by GitBox <gi...@apache.org>.
Addyvan commented on issue #18011:
URL: https://github.com/apache/pulsar/issues/18011#issuecomment-1276337633
>
@Technoboy- Can you confirm that the change did take place by editing the properties then running `curl -L http://<ENDPOINT>:8080/admin/v2/persistent/<tenant>/<namespace>/<topic>/properties` to see if they did in fact change?
The curl command doesn't throw an error or return anything.
--
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
[GitHub] [pulsar] Technoboy- commented on issue #18011: Topic metadata unable to be updated using the admin REST API - Error 405 Method not Allowed
Posted by GitBox <gi...@apache.org>.
Technoboy- commented on issue #18011:
URL: https://github.com/apache/pulsar/issues/18011#issuecomment-1276970996
> >
>
> @Technoboy- Can you confirm that the change did take place by editing the properties then running `curl -L http://<ENDPOINT>:8080/admin/v2/persistent/<tenant>/<namespace>/<topic>/properties` to see if they did in fact change?
>
> The curl command doesn't throw an error or return anything.
yes, it works.
<img width="1108" alt="image" src="https://user-images.githubusercontent.com/6297296/195490745-0130012c-76a2-4bd9-9140-601aab68ced2.png">
--
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