This for some reason work without a problem: ```python import json import bugzilla BMO_URL = "https://bugzilla.mozilla.org/rest" TEST_BUG = 1877206 API_KEY = "<YOUR KEY>" bugzilla_client = bugzilla.Bugzilla(url=BMO_URL, api_key=API_KEY) # def post_comment(bugid, api_key, payload): # headers = {"Content-Type": "application/json"} # res = post(f"{BMO_URL}/bug/{bugid}/comment?api_key={api_key}", # headers=headers, data=json.dumps(payload)) # return res.json() payload = {"id": TEST_BUG, "comment": "debug", "is_markdown": True} res = bugzilla_client._post(f"bug/{TEST_BUG}/comment", json.dumps(payload)) # res = post_comment(TEST_BUG, API_KEY, payload) print(json.dumps(res)) ```
Bug 1877201 Comment 3 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
This for some reason works without a problem: ```python import json import bugzilla BMO_URL = "https://bugzilla.mozilla.org/rest" TEST_BUG = 1877206 API_KEY = "<YOUR KEY>" bugzilla_client = bugzilla.Bugzilla(url=BMO_URL, api_key=API_KEY) # def post_comment(bugid, api_key, payload): # headers = {"Content-Type": "application/json"} # res = post(f"{BMO_URL}/bug/{bugid}/comment?api_key={api_key}", # headers=headers, data=json.dumps(payload)) # return res.json() payload = {"id": TEST_BUG, "comment": "debug", "is_markdown": True} res = bugzilla_client._post(f"bug/{TEST_BUG}/comment", json.dumps(payload)) # res = post_comment(TEST_BUG, API_KEY, payload) print(json.dumps(res)) ```