Title: Getting an error in filtering by path when listing commits · Issue #3100 · python-gitlab/python-gitlab · GitHub
Open Graph Title: Getting an error in filtering by path when listing commits · Issue #3100 · python-gitlab/python-gitlab
X Title: Getting an error in filtering by path when listing commits · Issue #3100 · python-gitlab/python-gitlab
Description: Description of the problem, including code/CLI snippet I want to get a commit list according to a specific folder in a branch, but I can't do this with the python module and I get an error. This is provided by rest api but python module ...
Open Graph Description: Description of the problem, including code/CLI snippet I want to get a commit list according to a specific folder in a branch, but I can't do this with the python module and I get an error. This is...
X Description: Description of the problem, including code/CLI snippet I want to get a commit list according to a specific folder in a branch, but I can't do this with the python module and I get an error. Thi...
Opengraph URL: https://github.com/python-gitlab/python-gitlab/issues/3100
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Getting an error in filtering by path when listing commits","articleBody":"## Description of the problem, including code/CLI snippet\nI want to get a commit list according to a specific folder in a branch, but I can't do this with the python module and I get an error. \nThis is provided by rest api but python module gets error with same parameters.\nI run these commands respectively.\n\n```shell\n\ngitlab_api = Gitlab(url=args.gitlab_url, private_token=args.gitlab_token)\n\ngitlab_project = gitlab_api.projects.get(id=args.gitlab_project_id, all=True)\n\ngitlab_project.commits.list(ref_name='main', path='deployemnt/v1.31')\n``` \n\nwhen I run Rest API I get results and no errors,\n\n/api/v4/projects/4021212/repository/commits?ref_name=main\u0026path=deployemnt/v1.31\n\n## Expected Behavior\n\n\n\n## Actual Behavior\n\n\n\u003cdetails\u003e\u003csummary\u003eDetails\u003c/summary\u003e\n\u003cp\u003e\n\n```\ngitlab.exceptions.GitlabHttpError: 404: 404 API Version Not Found\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\n File \"c:\\Users\\y79988\\AppData\\Local\\pypoetry\\Cache\\virtualenvs\\project-mLexHskk-py3.10\\lib\\site-packages\\gitlab\\exceptions.py\", line 346, in wrapped_f\n raise error(e.error_message, e.response_code, e.response_body) from e\ngitlab.exceptions.GitlabListError: **404: 404 API Version Not Found**\n```\n\n\u003c/p\u003e\n\u003c/details\u003e \n## Specifications\n\n - python-gitlab version: \"5.0.0\"\n - Gitlab server version (or gitlab.com):v17.7.1\n","author":{"url":"https://github.com/ahmetdd","@type":"Person","name":"ahmetdd"},"datePublished":"2025-01-24T09:47:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3100/python-gitlab/issues/3100"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8df1d53b-9e36-2590-f143-b50d92dbde1f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA16:1AD267:4D5EE55:68D4DC1:697313E3 |
| html-safe-nonce | 08978cdc0aafc9ebf94d5112e386f103ccf40d1d72988d404a98844e8d1e9fdb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTE2OjFBRDI2Nzo0RDVFRTU1OjY4RDREQzE6Njk3MzEzRTMiLCJ2aXNpdG9yX2lkIjoiODA1NDA3MDE2NDQwNTI5NDA1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ec737aab4c3cefba2e64744dc00c218bfa88a87971980dab317b70189c38fe73 |
| hovercard-subject-tag | issue:2809001836 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-gitlab/python-gitlab/3100/issue_layout |
| twitter:image | https://opengraph.githubassets.com/95c61283fffcb4cc47c6cbf513f471967228a5514b36fe45de646571046bf412/python-gitlab/python-gitlab/issues/3100 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/95c61283fffcb4cc47c6cbf513f471967228a5514b36fe45de646571046bf412/python-gitlab/python-gitlab/issues/3100 |
| og:image:alt | Description of the problem, including code/CLI snippet I want to get a commit list according to a specific folder in a branch, but I can't do this with the python module and I get an error. This is... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ahmetdd |
| hostname | github.com |
| expected-hostname | github.com |
| None | 44ab3188c1dcfe3be0f9c3feca2e04e14fb79f120939ce2395e4f15ab96ec1d4 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-gitlab/python-gitlab git https://github.com/python-gitlab/python-gitlab.git |
| octolytics-dimension-user_id | 28886265 |
| octolytics-dimension-user_login | python-gitlab |
| octolytics-dimension-repository_id | 8077625 |
| octolytics-dimension-repository_nwo | python-gitlab/python-gitlab |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 8077625 |
| octolytics-dimension-repository_network_root_nwo | python-gitlab/python-gitlab |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a5e2b48bd1260476599758f5d253b5d24092ab84 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width