簡體   English   中英

gerrit 的 Rest api 給出了響應,但是用於獲取修訂的 Python-gerrit-api package 給出了狀態 404

[英]Rest api of gerrit gives the response but Python-gerrit-api package for fetching revisions gives status 404

文檔: https://python-gerrit-api.readthedocs.io/en/latest/

代碼

gerrit = GerritClient(base_url="https://gerrit.xx.com",username='xxx',password='xxx')

更改 = gerrit.changes.get("xxx")

ab=change.get_revision("32423")

打印(ab.get_commit().list_change_files())

問題

對於某些端點,我能夠從 rest api 發送 get 響應,但通過此 package 我收到此錯誤(gerrit.utils.exceptions)。 I am able to get response from Get Rest api for this url: gerrit.xx.xx.com/a/projects/xxxx/commits/xxxx/files via postman. 但是上面的代碼出錯了。

看起來這是一個錯誤,我已經修復它並提出了拉取請求。 見: https://github.com/shijl0925/python-gerrit-api/pull/5

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM