Comments (1)
@Malaber I just checked and verified that the client does pass the right parameters (see below with debug output).
So I'd say the issue is somewhere in how you provide the token or the token itself (with no auth, it will always be an empty list). Make sure you really supply a token that has some projects.
Python 3.12.3 (main, Apr 17 2024, 00:00:00) [GCC 14.0.1 20240411 (Red Hat 14.0.1-0)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gitlab
>>> gl = gitlab.Gitlab()
>>> gl.enable_debug()
>>> gl.projects.list(membership=True, all=True)
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): gitlab.com:443
DEBUG:http.client:send: b'GET /api/v4/projects?membership=True HTTP/1.1\r\nHost: gitlab.com\r\nUser-Agent: python-gitlab/4.6.0\r\nAccept-Encoding: gzip, deflate\r\nAccept: */*\r\nConnection: keep-alive\r\nContent-type: application/json\r\n\r\n'
DEBUG:http.client:reply: 'HTTP/1.1 200 OK\r\n'
I'll close this but feel free to reopen if you still get issues after fixing the auth.
from python-gitlab.
Related Issues (20)
- .play() on job returns 500 even though job is started successfully HOT 6
- Trigger a test project hook
- Add support for testing/triggering Project and Group hooks HOT 2
- Add support for removing avatars in the topics API. HOT 3
- `project-push-rules delete` broken
- Extend support for group-level service-accounts HOT 4
- List of users who approved MR is not returned HOT 8
- GitLabList._data HOT 6
- Lack of possibility do download an 'upload' HOT 3
- Feature : Add API get-file-metadata-only HOT 3
- 2024-10: Remove Python 3.8 as supported Python version
- `project-pipeline-schedule-pipeline` does not list all active schedules HOT 2
- ProjectFileManager does not implement head method to meet API spec HOT 12
- Support User service account API
- Duplicate objects returned from list HOT 9
- NameError: name 'httpx' is not defined HOT 6
- NameError: name 'httpx' is not defined in latest release 4.11.0 HOT 2
- httpx needs importing HOT 2
- Project Push Rules not returning response HOT 1
- Handle retries for instances of requests.exceptions.Timeout
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-gitlab.